	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_sirfsoc_set_address
_i2c_sirfsoc_set_address:               ## @i2c_sirfsoc_set_address
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_SIRFSOC_I2C_START@GOTPCREL(%rip), %rax
	movb	(%rax), %r12b
	xorl	%edi, %edi
	callq	_SIRFSOC_I2C_CMD_RP
	movl	%eax, %ebx
	orb	%r12b, %bl
	movq	_SIRFSOC_I2C_WRITE@GOTPCREL(%rip), %rax
	orb	(%rax), %bl
	cmpq	$0, 16(%r15)
	je	LBB0_3
## %bb.1:
	cmpq	$0, (%r14)
	jne	LBB0_3
## %bb.2:
	movq	_SIRFSOC_I2C_STOP@GOTPCREL(%rip), %rax
	orb	(%rax), %bl
LBB0_3:
	movq	8(%r15), %r12
	movl	(%r15), %edi
	leal	1(%rdi), %eax
	movl	%eax, (%r15)
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_SIRFSOC_I2C_CMD
	addq	%rax, %r12
	movzbl	%bl, %edi
	movq	%r12, %rsi
	callq	_writel
	movq	%r14, %rdi
	callq	_i2c_8bit_addr_from_msg
	movq	_I2C_M_REV_DIR_ADDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	8(%r14), %ecx
	setne	%r14b
	xorb	%al, %r14b
	movq	8(%r15), %rbx
	movl	(%r15), %edi
	leal	1(%rdi), %eax
	movl	%eax, (%r15)
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_SIRFSOC_I2C_CMD
	addq	%rax, %rbx
	movzbl	%r14b, %edi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SIRFSOC_I2C_START,1,0          ## @SIRFSOC_I2C_START
	.comm	_SIRFSOC_I2C_WRITE,1,0          ## @SIRFSOC_I2C_WRITE
	.comm	_SIRFSOC_I2C_STOP,1,0           ## @SIRFSOC_I2C_STOP
	.comm	_I2C_M_REV_DIR_ADDR,4,2         ## @I2C_M_REV_DIR_ADDR
	.no_dead_strip	_i2c_sirfsoc_set_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_sirfsoc_set_address
_i2c_sirfsoc_set_address:               ; @i2c_sirfsoc_set_address
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _SIRFSOC_I2C_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIRFSOC_I2C_START@GOTPAGEOFF]
	ldrb	w21, [x8]
	mov	w0, #0
	bl	_SIRFSOC_I2C_CMD_RP
	orr	w8, w0, w21
Lloh2:
	adrp	x9, _SIRFSOC_I2C_WRITE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SIRFSOC_I2C_WRITE@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w21, w8, w9
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x20]
	cbnz	x8, LBB0_3
; %bb.2:
Lloh4:
	adrp	x8, _SIRFSOC_I2C_STOP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SIRFSOC_I2C_STOP@GOTPAGEOFF]
	ldrb	w8, [x8]
	orr	w21, w8, w21
LBB0_3:
	ldr	x22, [x19, #8]
	ldr	w0, [x19]
	add	w8, w0, #1
	str	w8, [x19]
	bl	_SIRFSOC_I2C_CMD
	add	x1, x0, x22
	and	w0, w21, #0xff
	bl	_writel
	mov	x0, x20
	bl	_i2c_8bit_addr_from_msg
	ldr	w8, [x20, #8]
Lloh6:
	adrp	x9, _I2C_M_REV_DIR_ADDR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I2C_M_REV_DIR_ADDR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	eor	w20, w0, w8
	ldr	x21, [x19, #8]
	ldr	w0, [x19]
	add	w8, w0, #1
	str	w8, [x19]
	bl	_SIRFSOC_I2C_CMD
	add	x1, x0, x21
	mov	x0, x20
	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	_writel
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SIRFSOC_I2C_START,1,0          ; @SIRFSOC_I2C_START
	.comm	_SIRFSOC_I2C_WRITE,1,0          ; @SIRFSOC_I2C_WRITE
	.comm	_SIRFSOC_I2C_STOP,1,0           ; @SIRFSOC_I2C_STOP
	.comm	_I2C_M_REV_DIR_ADDR,4,2         ; @I2C_M_REV_DIR_ADDR
	.no_dead_strip	_i2c_sirfsoc_set_address
.subsections_via_symbols
