	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pca9534_set_gpio
_pca9534_set_gpio:                      ## @pca9534_set_gpio
	.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	%r12
	pushq	%rbx
	subq	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	$1, -112(%rbp)
	movl	$0, -100(%rbp)
	leaq	-112(%rbp), %rax
	movq	%rax, -96(%rbp)
	movq	$1, -88(%rbp)
	movq	_PCA9534_I2C_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	leaq	-100(%rbp), %rcx
	movq	%rcx, -72(%rbp)
	movl	$1, -64(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -60(%rbp)
	movl	%eax, -56(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_mxl_debug
	movq	(%r14), %rdi
	leaq	-96(%rbp), %r12
	movq	%r12, %rsi
	movl	$2, %edx
	callq	_i2c_transfer
	movl	-100(%rbp), %eax
	btrl	%ebx, %eax
	xorl	%edx, %edx
	testl	%r15d, %r15d
	setne	%dl
	movl	%ebx, %ecx
	shll	%cl, %edx
	movl	$2, -88(%rbp)
	orl	%eax, %edx
	movl	%edx, -108(%rbp)
	movq	(%r14), %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_i2c_transfer
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PCA9534_I2C_ADDR,4,2           ## @PCA9534_I2C_ADDR
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%d, %d)"

	.no_dead_strip	_pca9534_set_gpio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function pca9534_set_gpio
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_pca9534_set_gpio:                      ; @pca9534_set_gpio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	mov	w22, #1
	str	wzr, [sp, #12]
	add	x8, sp, #16
	stp	x22, x8, [sp, #16]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #32]
Lloh5:
	adrp	x8, _PCA9534_I2C_ADDR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCA9534_I2C_ADDR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	add	x9, sp, #12
	str	x9, [sp, #48]
Lloh8:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh9:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w22, w9, [sp, #56]
	str	w8, [sp, #64]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_mxl_debug
	ldr	x0, [x21]
	mov	w23, #2
	add	x1, sp, #24
	mov	w2, #2
	bl	_i2c_transfer
	str	w23, [sp, #32]
	ldr	w8, [sp, #12]
	lsl	w9, w22, w20
	bic	w8, w8, w9
	cmp	w19, #0
	cset	w9, ne
	lsl	w9, w9, w20
	orr	w8, w8, w9
	str	w8, [sp, #20]
	ldr	x0, [x21]
	add	x1, sp, #24
	mov	w2, #1
	bl	_i2c_transfer
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdrp	Lloh3, Lloh5
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PCA9534_I2C_ADDR,4,2           ; @PCA9534_I2C_ADDR
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%d, %d)"

	.no_dead_strip	_pca9534_set_gpio
.subsections_via_symbols
