	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zx2967_smbus_xfer_prepare
_zx2967_smbus_xfer_prepare:             ## @zx2967_smbus_xfer_prepare
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r13d
	movl	%ecx, %r15d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_REG_RDCONF@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_zx2967_i2c_readl
	movq	_I2C_RFIFO_RESET@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_zx2967_i2c_writel
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_zx2967_set_addr
	movq	_REG_CMD@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_zx2967_i2c_readl
	movq	_I2C_RW_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_zx2967_i2c_writel
	cmpl	$128, %r13d
	je	LBB0_5
## %bb.1:
	cmpl	$130, %r13d
	je	LBB0_7
## %bb.2:
	cmpl	$129, %r13d
	jne	LBB0_8
## %bb.3:
	movq	_REG_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_zx2967_i2c_writel
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpb	%cl, (%rax)
	jne	LBB0_8
## %bb.4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r15d
	jmp	LBB0_7
LBB0_5:
	movq	_REG_DATA@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_zx2967_i2c_writel
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpb	%cl, (%rax)
	jne	LBB0_8
## %bb.6:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %esi
	sarl	$8, %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_zx2967_i2c_writel
	movzbl	(%r15), %r15d
LBB0_7:
	movq	_REG_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_zx2967_i2c_writel              ## TAILCALL
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_RDCONF,4,2                 ## @REG_RDCONF
	.comm	_I2C_RFIFO_RESET,4,2            ## @I2C_RFIFO_RESET
	.comm	_REG_CMD,4,2                    ## @REG_CMD
	.comm	_I2C_RW_READ,4,2                ## @I2C_RW_READ
	.comm	_REG_DATA,4,2                   ## @REG_DATA
	.comm	_I2C_SMBUS_WRITE,1,0            ## @I2C_SMBUS_WRITE
	.no_dead_strip	_zx2967_smbus_xfer_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zx2967_smbus_xfer_prepare
_zx2967_smbus_xfer_prepare:             ; @zx2967_smbus_xfer_prepare
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x5
	mov	x22, x4
	mov	x21, x3
	mov	x23, x1
	mov	x19, x0
	and	w24, w2, #0xff
Lloh0:
	adrp	x25, _REG_RDCONF@GOTPAGE
Lloh1:
	ldr	x25, [x25, _REG_RDCONF@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_zx2967_i2c_readl
Lloh2:
	adrp	x8, _I2C_RFIFO_RESET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I2C_RFIFO_RESET@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w2, [x25]
	mov	x0, x19
	bl	_zx2967_i2c_writel
	mov	x0, x19
	mov	x1, x23
	bl	_zx2967_set_addr
Lloh5:
	adrp	x23, _REG_CMD@GOTPAGE
Lloh6:
	ldr	x23, [x23, _REG_CMD@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_zx2967_i2c_readl
Lloh7:
	adrp	x8, _I2C_RW_READ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _I2C_RW_READ@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w2, [x23]
	mov	x0, x19
	bl	_zx2967_i2c_writel
	cmp	w22, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w22, #130
	b.eq	LBB0_7
; %bb.2:
	cmp	w22, #129
	b.ne	LBB0_8
; %bb.3:
Lloh10:
	adrp	x8, _REG_DATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _REG_DATA@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_zx2967_i2c_writel
Lloh13:
	adrp	x8, _I2C_SMBUS_WRITE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w24
	b.ne	LBB0_8
; %bb.4:
	ldr	w21, [x20]
	b	LBB0_7
LBB0_5:
Lloh15:
	adrp	x22, _REG_DATA@GOTPAGE
Lloh16:
	ldr	x22, [x22, _REG_DATA@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x21
	bl	_zx2967_i2c_writel
Lloh17:
	adrp	x8, _I2C_SMBUS_WRITE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w24
	b.ne	LBB0_8
; %bb.6:
	ldr	w8, [x20]
	asr	w1, w8, #8
	ldr	w2, [x22]
	mov	x0, x19
	bl	_zx2967_i2c_writel
	ldrb	w21, [x20]
LBB0_7:
Lloh19:
	adrp	x8, _REG_DATA@GOTPAGE
Lloh20:
	ldr	x8, [x8, _REG_DATA@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_zx2967_i2c_writel
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_RDCONF,4,2                 ; @REG_RDCONF
	.comm	_I2C_RFIFO_RESET,4,2            ; @I2C_RFIFO_RESET
	.comm	_REG_CMD,4,2                    ; @REG_CMD
	.comm	_I2C_RW_READ,4,2                ; @I2C_RW_READ
	.comm	_REG_DATA,4,2                   ; @REG_DATA
	.comm	_I2C_SMBUS_WRITE,1,0            ; @I2C_SMBUS_WRITE
	.no_dead_strip	_zx2967_smbus_xfer_prepare
.subsections_via_symbols
