	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zx2967_smbus_xfer
_zx2967_smbus_xfer:                     ## @zx2967_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, %ebx
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	movl	%esi, %r13d
	movq	16(%rbp), %r14
	callq	_i2c_get_adapdata
	movq	%rax, %r15
	movl	%ebx, %eax
	andl	$-4, %eax
	cmpl	$128, %eax
	jne	LBB0_3
## %bb.1:
	cmpl	$129, %ebx
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	movzbl	%r12b, %ecx
	cmovel	%eax, %ecx
	movsbl	%cl, %r12d
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ebx, %r8d
	movq	%r14, %r9
	callq	_zx2967_smbus_xfer_prepare
	movq	_I2C_SMBUS_READ@GOTPCREL(%rip), %rax
	cmpb	(%rax), %r12b
	jne	LBB0_2
## %bb.4:
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_zx2967_smbus_xfer_read         ## TAILCALL
LBB0_3:
	movq	_EOPNOTSUPP@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
LBB0_2:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_zx2967_smbus_xfer_write        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_SMBUS_WRITE,1,0            ## @I2C_SMBUS_WRITE
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_I2C_SMBUS_READ,1,0             ## @I2C_SMBUS_READ
	.no_dead_strip	_zx2967_smbus_xfer
.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
_zx2967_smbus_xfer:                     ; @zx2967_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	x20, x5
	mov	x22, x4
	mov	x24, x3
	mov	x23, x1
	bl	_i2c_get_adapdata
	and	w8, w20, #0xfffffffc
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _I2C_SMBUS_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w20, #129
	csel	w24, w8, w24, eq
	sxtb	w2, w24
	mov	x1, x23
	mov	x3, x22
	mov	x4, x20
	mov	x5, x19
	bl	_zx2967_smbus_xfer_prepare
Lloh2:
	adrp	x8, _I2C_SMBUS_READ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I2C_SMBUS_READ@GOTPAGEOFF]
	ldrb	w8, [x8]
	mov	x0, x21
	cmp	w8, w24, uxtb
	b.ne	LBB0_4
; %bb.2:
	mov	x1, x20
	mov	x2, 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	_zx2967_smbus_xfer_read
LBB0_3:
Lloh4:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh6:
	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
LBB0_4:
	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	_zx2967_smbus_xfer_write
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_SMBUS_WRITE,1,0            ; @I2C_SMBUS_WRITE
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_I2C_SMBUS_READ,1,0             ; @I2C_SMBUS_READ
	.no_dead_strip	_zx2967_smbus_xfer
.subsections_via_symbols
