	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function da9052_gpio_direction_output
_da9052_gpio_direction_output:          ## @da9052_gpio_direction_output
	.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, %ebx
	movl	%esi, %r14d
	callq	_gpiochip_get_data
	movq	%rax, %r15
	movq	_DA9052_OUTPUT_PUSHPULL@GOTPCREL(%rip), %rax
	movq	_DA9052_SUPPLY_VDD_IO1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$2, %ecx
	shll	$3, %ebx
	orl	(%rax), %ebx
	orl	%ecx, %ebx
	movl	%r14d, %edi
	callq	_da9052_gpio_port_odd
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r15), %edi
	shrl	%r14d
	movq	_DA9052_GPIO_0_1_REG@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movq	_DA9052_GPIO_MASK_UPPER_NIBBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DA9052_GPIO_NIBBLE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	jmp	LBB0_3
LBB0_2:
	shrl	%r14d
	movq	_DA9052_GPIO_0_1_REG@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movl	(%r15), %edi
	movq	_DA9052_GPIO_MASK_LOWER_NIBBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_3:
	movzbl	%bl, %ecx
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_da9052_reg_update              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DA9052_OUTPUT_PUSHPULL,4,2     ## @DA9052_OUTPUT_PUSHPULL
	.comm	_DA9052_SUPPLY_VDD_IO1,4,2      ## @DA9052_SUPPLY_VDD_IO1
	.comm	_DA9052_GPIO_0_1_REG,8,3        ## @DA9052_GPIO_0_1_REG
	.comm	_DA9052_GPIO_MASK_UPPER_NIBBLE,4,2 ## @DA9052_GPIO_MASK_UPPER_NIBBLE
	.comm	_DA9052_GPIO_NIBBLE_SHIFT,1,0   ## @DA9052_GPIO_NIBBLE_SHIFT
	.comm	_DA9052_GPIO_MASK_LOWER_NIBBLE,4,2 ## @DA9052_GPIO_MASK_LOWER_NIBBLE
	.no_dead_strip	_da9052_gpio_direction_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function da9052_gpio_direction_output
_da9052_gpio_direction_output:          ; @da9052_gpio_direction_output
	.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	x21, x2
	mov	x19, x1
	bl	_gpiochip_get_data
	mov	x20, x0
Lloh0:
	adrp	x8, _DA9052_OUTPUT_PUSHPULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DA9052_OUTPUT_PUSHPULL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DA9052_SUPPLY_VDD_IO1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DA9052_SUPPLY_VDD_IO1@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w8, w21, lsl #3
	orr	w21, w8, w9, lsl #2
	mov	x0, x19
	bl	_da9052_gpio_port_odd
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x20]
	lsr	w8, w19, #1
Lloh6:
	adrp	x9, _DA9052_GPIO_0_1_REG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DA9052_GPIO_0_1_REG@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
Lloh9:
	adrp	x8, _DA9052_GPIO_MASK_UPPER_NIBBLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DA9052_GPIO_MASK_UPPER_NIBBLE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _DA9052_GPIO_NIBBLE_SHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DA9052_GPIO_NIBBLE_SHIFT@GOTPAGEOFF]
	ldrb	w8, [x8]
	lsl	w8, w21, w8
	and	w3, w8, #0xff
	b	LBB0_3
LBB0_2:
	ldr	w0, [x20]
	lsr	w8, w19, #1
Lloh14:
	adrp	x9, _DA9052_GPIO_0_1_REG@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DA9052_GPIO_0_1_REG@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x1, x9, x8
Lloh17:
	adrp	x8, _DA9052_GPIO_MASK_LOWER_NIBBLE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DA9052_GPIO_MASK_LOWER_NIBBLE@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	and	w3, w21, #0xff
LBB0_3:
	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	_da9052_reg_update
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DA9052_OUTPUT_PUSHPULL,4,2     ; @DA9052_OUTPUT_PUSHPULL
	.comm	_DA9052_SUPPLY_VDD_IO1,4,2      ; @DA9052_SUPPLY_VDD_IO1
	.comm	_DA9052_GPIO_0_1_REG,8,3        ; @DA9052_GPIO_0_1_REG
	.comm	_DA9052_GPIO_MASK_UPPER_NIBBLE,4,2 ; @DA9052_GPIO_MASK_UPPER_NIBBLE
	.comm	_DA9052_GPIO_NIBBLE_SHIFT,1,0   ; @DA9052_GPIO_NIBBLE_SHIFT
	.comm	_DA9052_GPIO_MASK_LOWER_NIBBLE,4,2 ; @DA9052_GPIO_MASK_LOWER_NIBBLE
	.no_dead_strip	_da9052_gpio_direction_output
.subsections_via_symbols
