	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pca9555_set_output             ## -- Begin function pca9555_set_output
	.p2align	4, 0x90
_pca9555_set_output:                    ## @pca9555_set_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	%rdx, -16(%rbp)
	callq	_SLAVE_TO_ADDR
	testq	%rbx, %rbx
	jne	LBB0_1
## %bb.2:
	movq	_CMD_OUTPUT_0@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_CMD_OUTPUT_1@GOTPCREL(%rip), %rcx
LBB0_3:
	movq	(%rcx), %rsi
	movq	_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	leaq	-16(%rbp), %rdx
	movq	%rax, %rdi
	movl	$8, %ecx
	callq	_i2c_writeReg
	movq	_I2C_STATUS_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_print
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_OUTPUT_1,8,3               ## @CMD_OUTPUT_1
	.comm	_CMD_OUTPUT_0,8,3               ## @CMD_OUTPUT_0
	.comm	_TIMEOUT,4,2                    ## @TIMEOUT
	.comm	_I2C_STATUS_SUCCESS,8,3         ## @I2C_STATUS_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pca9555_set_output::FAILED\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pca9555_set_output             ; -- Begin function pca9555_set_output
	.p2align	2
_pca9555_set_output:                    ; @pca9555_set_output
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	str	x2, [sp, #8]
	bl	_SLAVE_TO_ADDR
Lloh0:
	adrp	x8, _CMD_OUTPUT_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_OUTPUT_1@GOTPAGEOFF]
Lloh2:
	adrp	x9, _CMD_OUTPUT_0@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CMD_OUTPUT_0@GOTPAGEOFF]
	cmp	x19, #0
	csel	x8, x9, x8, eq
	ldr	x1, [x8]
Lloh4:
	adrp	x8, _TIMEOUT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TIMEOUT@GOTPAGEOFF]
Lloh6:
	ldr	w4, [x8]
	add	x2, sp, #8
	mov	w3, #8
	bl	_i2c_writeReg
Lloh7:
	adrp	x8, _I2C_STATUS_SUCCESS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _I2C_STATUS_SUCCESS@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_print
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_OUTPUT_1,8,3               ; @CMD_OUTPUT_1
	.comm	_CMD_OUTPUT_0,8,3               ; @CMD_OUTPUT_0
	.comm	_TIMEOUT,4,2                    ; @TIMEOUT
	.comm	_I2C_STATUS_SUCCESS,8,3         ; @I2C_STATUS_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pca9555_set_output::FAILED\n"

.subsections_via_symbols
