	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function da9052_gpio_set
_da9052_gpio_set:                       ## @da9052_gpio_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	callq	_gpiochip_get_data
	movq	%rax, %r14
	movl	%ebx, %edi
	callq	_da9052_gpio_port_odd
	shrl	%ebx
	movq	_DA9052_GPIO_0_1_REG@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rbx
	movq	(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_DA9052_GPIO_ODD_PORT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DA9052_GPIO_ODD_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r15d
	movq	%rbx, %rsi
	movl	%r15d, %ecx
	callq	_da9052_reg_update
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movq	(%r14), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_4:
	movq	_DA9052_GPIO_EVEN_PORT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DA9052_GPIO_EVEN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r15d
	movq	%rbx, %rsi
	movl	%r15d, %ecx
	callq	_da9052_reg_update
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	(%r14), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DA9052_GPIO_0_1_REG,8,3        ## @DA9052_GPIO_0_1_REG
	.comm	_DA9052_GPIO_ODD_PORT_MODE,4,2  ## @DA9052_GPIO_ODD_PORT_MODE
	.comm	_DA9052_GPIO_ODD_SHIFT,4,2      ## @DA9052_GPIO_ODD_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to updated gpio odd reg,%d"

	.comm	_DA9052_GPIO_EVEN_PORT_MODE,4,2 ## @DA9052_GPIO_EVEN_PORT_MODE
	.comm	_DA9052_GPIO_EVEN_SHIFT,4,2     ## @DA9052_GPIO_EVEN_SHIFT
L_.str.1:                               ## @.str.1
	.asciz	"Failed to updated gpio even reg,%d"

	.no_dead_strip	_da9052_gpio_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function da9052_gpio_set
_da9052_gpio_set:                       ; @da9052_gpio_set
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x21, x1
	bl	_gpiochip_get_data
	mov	x19, x0
	mov	x0, x21
	bl	_da9052_gpio_port_odd
	mov	x8, x0
	ldr	x0, [x19]
	lsr	w9, w21, #1
Lloh0:
	adrp	x10, _DA9052_GPIO_0_1_REG@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DA9052_GPIO_0_1_REG@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	add	x1, x10, x9
	cbz	x8, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _DA9052_GPIO_ODD_PORT_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DA9052_GPIO_ODD_PORT_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _DA9052_GPIO_ODD_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DA9052_GPIO_ODD_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	w3, w20, w8
	bl	_da9052_reg_update
	cbz	w0, LBB0_6
; %bb.2:
	mov	x2, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:
Lloh11:
	adrp	x8, _DA9052_GPIO_EVEN_PORT_MODE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DA9052_GPIO_EVEN_PORT_MODE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _DA9052_GPIO_EVEN_SHIFT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DA9052_GPIO_EVEN_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	lsl	w3, w20, w8
	bl	_da9052_reg_update
	cbz	w0, LBB0_6
; %bb.4:
	mov	x2, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dev_err
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_DA9052_GPIO_0_1_REG,8,3        ; @DA9052_GPIO_0_1_REG
	.comm	_DA9052_GPIO_ODD_PORT_MODE,4,2  ; @DA9052_GPIO_ODD_PORT_MODE
	.comm	_DA9052_GPIO_ODD_SHIFT,4,2      ; @DA9052_GPIO_ODD_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to updated gpio odd reg,%d"

	.comm	_DA9052_GPIO_EVEN_PORT_MODE,4,2 ; @DA9052_GPIO_EVEN_PORT_MODE
	.comm	_DA9052_GPIO_EVEN_SHIFT,4,2     ; @DA9052_GPIO_EVEN_SHIFT
l_.str.1:                               ; @.str.1
	.asciz	"Failed to updated gpio even reg,%d"

	.no_dead_strip	_da9052_gpio_set
.subsections_via_symbols
