	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adp5588_gpio_direction_output
_adp5588_gpio_direction_output:         ## @adp5588_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %ebx
	callq	_gpiochip_get_data
	movq	%rax, %r15
	movl	%ebx, %edi
	callq	_ADP5588_BANK
	movl	%eax, %r13d
	movl	%ebx, %edi
	callq	_ADP5588_BIT
	movl	%eax, %ebx
	leaq	16(%r15), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%r15), %rax
	movl	%r13d, %r13d
	orl	%ebx, (%rax,%r13,4)
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.1:
	movq	8(%r15), %rax
	orl	(%rax,%r13,4), %ebx
	jmp	LBB0_3
LBB0_2:
	notl	%ebx
	movq	8(%r15), %rax
	andl	(%rax,%r13,4), %ebx
LBB0_3:
	movl	%ebx, (%rax,%r13,4)
	movl	20(%r15), %edi
	movq	_GPIO_DAT_OUT1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r13, %rsi
	movl	%ebx, %edx
	callq	_adp5588_gpio_write
	movl	%eax, %r12d
	movl	20(%r15), %edi
	movq	_GPIO_DIR1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r13, %rsi
	movq	(%r15), %rax
	movl	(%rax,%r13,4), %edx
	callq	_adp5588_gpio_write
	movl	%eax, %ebx
	orl	%r12d, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO_DAT_OUT1,8,3              ## @GPIO_DAT_OUT1
	.comm	_GPIO_DIR1,8,3                  ## @GPIO_DIR1
	.no_dead_strip	_adp5588_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 adp5588_gpio_direction_output
_adp5588_gpio_direction_output:         ; @adp5588_gpio_direction_output
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x20, x1
	bl	_gpiochip_get_data
	mov	x19, x0
	mov	x0, x20
	bl	_ADP5588_BANK
	mov	x23, x0
	mov	x0, x20
	bl	_ADP5588_BIT
	mov	x21, x0
	add	x20, x19, #16
	mov	x0, x20
	bl	_mutex_lock
	ldr	x9, [x19]
	mov	w23, w23
	lsl	x8, x23, #2
	ldr	w10, [x9, x8]
	orr	w10, w10, w21
	str	w10, [x9, x8]
	cbz	w22, LBB0_2
; %bb.1:
	ldr	x9, [x19, #8]
	ldr	w10, [x9, x8]
	orr	w2, w10, w21
	b	LBB0_3
LBB0_2:
	ldr	x9, [x19, #8]
	ldr	w10, [x9, x8]
	bic	w2, w10, w21
LBB0_3:
	str	w2, [x9, x8]
	ldr	w0, [x19, #20]
Lloh0:
	adrp	x8, _GPIO_DAT_OUT1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPIO_DAT_OUT1@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x1, x8, x23
	bl	_adp5588_gpio_write
	mov	x21, x0
Lloh3:
	adrp	x8, _GPIO_DIR1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GPIO_DIR1@GOTPAGEOFF]
	ldr	w0, [x19, #20]
Lloh5:
	ldr	x8, [x8]
	add	x1, x8, x23
	ldr	x8, [x19]
	ldr	w2, [x8, x23, lsl #2]
	bl	_adp5588_gpio_write
	orr	w19, w0, w21
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO_DAT_OUT1,8,3              ; @GPIO_DAT_OUT1
	.comm	_GPIO_DIR1,8,3                  ; @GPIO_DIR1
	.no_dead_strip	_adp5588_gpio_direction_output
.subsections_via_symbols
