	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function go7007_smbus_xfer
_go7007_smbus_xfer:                     ## @go7007_smbus_xfer
	.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	%r9d, %r14d
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	16(%rbp), %r15
	callq	_i2c_get_adapdata
	movq	_I2C_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	jne	LBB0_1
## %bb.2:
	movq	_I2C_SMBUS_READ@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpb	%r13b, (%rcx)
	sete	%dl
	movq	_I2C_CLIENT_SCCB@GOTPCREL(%rip), %rcx
	xorl	%r8d, %r8d
	andw	(%rcx), %bx
	setne	%r8b
	shll	$4, %r8d
	movq	%rax, %rdi
	movl	%r12d, %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	%r15, %r9
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_go7007_i2c_xfer                ## TAILCALL
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_SMBUS_BYTE_DATA,4,2        ## @I2C_SMBUS_BYTE_DATA
	.comm	_EIO,4,2                        ## @EIO
	.comm	_I2C_SMBUS_READ,1,0             ## @I2C_SMBUS_READ
	.comm	_I2C_CLIENT_SCCB,2,1            ## @I2C_CLIENT_SCCB
	.no_dead_strip	_go7007_smbus_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function go7007_smbus_xfer
_go7007_smbus_xfer:                     ; @go7007_smbus_xfer
	.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	x19, x6
	mov	x24, x5
	mov	x20, x4
	mov	x23, x3
	mov	x22, x2
	mov	x21, x1
	bl	_i2c_get_adapdata
Lloh0:
	adrp	x8, _I2C_SMBUS_BYTE_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_SMBUS_BYTE_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w24
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _I2C_SMBUS_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2C_SMBUS_READ@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w23, uxtb
	cset	w2, eq
Lloh5:
	adrp	x8, _I2C_CLIENT_SCCB@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I2C_CLIENT_SCCB@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w8, w22
	cset	w8, ne
	lsl	w4, w8, #4
	mov	x1, x21
	mov	x3, x20
	mov	x5, 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
	b	_go7007_i2c_xfer
LBB0_2:
Lloh7:
	adrp	x8, _EIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_SMBUS_BYTE_DATA,4,2        ; @I2C_SMBUS_BYTE_DATA
	.comm	_EIO,4,2                        ; @EIO
	.comm	_I2C_SMBUS_READ,1,0             ; @I2C_SMBUS_READ
	.comm	_I2C_CLIENT_SCCB,2,1            ; @I2C_CLIENT_SCCB
	.no_dead_strip	_go7007_smbus_xfer
.subsections_via_symbols
