	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chip_direction_output
_chip_direction_output:                 ## @chip_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, %r15d
	movl	%esi, %r14d
	callq	_gpiochip_get_data
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_spin_lock_irqsave
	movq	_GPIO_INPUT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	___cs5535_gpio_set
	movq	_GPIO_OUTPUT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	___cs5535_gpio_set
	movq	_GPIO_OUTPUT_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	callq	___cs5535_gpio_set
	jmp	LBB0_3
LBB0_2:
	callq	___cs5535_gpio_clear
LBB0_3:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO_INPUT_ENABLE,4,2          ## @GPIO_INPUT_ENABLE
	.comm	_GPIO_OUTPUT_ENABLE,4,2         ## @GPIO_OUTPUT_ENABLE
	.comm	_GPIO_OUTPUT_VAL,4,2            ## @GPIO_OUTPUT_VAL
	.no_dead_strip	_chip_direction_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chip_direction_output
_chip_direction_output:                 ; @chip_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	x20, x1
	bl	_gpiochip_get_data
	mov	x19, x0
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _GPIO_INPUT_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPIO_INPUT_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	___cs5535_gpio_set
Lloh3:
	adrp	x8, _GPIO_OUTPUT_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GPIO_OUTPUT_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	___cs5535_gpio_set
Lloh6:
	adrp	x8, _GPIO_OUTPUT_VAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GPIO_OUTPUT_VAL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	cbz	w21, LBB0_2
; %bb.1:
	bl	___cs5535_gpio_set
	b	LBB0_3
LBB0_2:
	bl	___cs5535_gpio_clear
LBB0_3:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO_INPUT_ENABLE,4,2          ; @GPIO_INPUT_ENABLE
	.comm	_GPIO_OUTPUT_ENABLE,4,2         ; @GPIO_OUTPUT_ENABLE
	.comm	_GPIO_OUTPUT_VAL,4,2            ; @GPIO_OUTPUT_VAL
	.no_dead_strip	_chip_direction_output
.subsections_via_symbols
