	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dibusb_i2c_xfer
_dibusb_i2c_xfer:                       ## @dibusb_i2c_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	%edx, %r15d
	movq	%rsi, %r12
	callq	_i2c_get_adapdata
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	js	LBB0_15
## %bb.1:
	xorl	%ebx, %ebx
	testl	%r15d, %r15d
	jg	LBB0_2
LBB0_13:
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12,%rax,8), %rdx
	movl	8(%r12,%rax,8), %ecx
	movq	%r14, %rdi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_dibusb_i2c_msg
	testq	%rax, %rax
	js	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %ebx
	cmpl	%r15d, %r13d
	jge	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	1(%rbx), %r13d
	movslq	%ebx, %rax
	leaq	(%rax,%rax,2), %rax
	movl	(%r12,%rax,8), %ecx
	movq	_I2C_M_RD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%r15d, %r13d
	jge	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, %esi
	andl	%ecx, %esi
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r13d, %rsi
	leaq	(%rsi,%rsi,2), %rdi
	testl	%edx, (%r12,%rdi,8)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12,%rax,8), %rdx
	movl	4(%r12,%rax,8), %esi
	movl	8(%r12,%rax,8), %ecx
	movq	16(%r12,%rdi,8), %r8
	movl	8(%r12,%rdi,8), %r9d
	movq	%r14, %rdi
	callq	_dibusb_i2c_msg
	testq	%rax, %rax
	js	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	$2, %ebx
	movl	%ebx, %r13d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r12,%rax,8), %esi
	testl	%ecx, %edx
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$80, %esi
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12,%rax,8), %r8
	movl	8(%r12,%rax,8), %r9d
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_11
LBB0_15:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.no_dead_strip	_dibusb_i2c_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dibusb_i2c_xfer
_dibusb_i2c_xfer:                       ; @dibusb_i2c_xfer
	.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, x2
	mov	x21, x1
	bl	_i2c_get_adapdata
	mov	x19, x0
	bl	_mutex_lock_interruptible
	tbnz	x0, #63, LBB0_12
; %bb.1:
	cmp	w20, #1
	b.lt	LBB0_13
; %bb.2:
	mov	w22, #0
	mov	w23, #24
Lloh0:
	adrp	x24, _I2C_M_RD@GOTPAGE
Lloh1:
	ldr	x24, [x24, _I2C_M_RD@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	madd	x8, x8, x23, x21
	ldr	x2, [x8, #16]
	ldr	w3, [x8, #8]
	mov	x0, x19
	mov	x4, #0
	mov	w5, #0
	bl	_dibusb_i2c_msg
	tbz	x0, #63, LBB0_11
	b	LBB0_14
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x8, w22
	add	x25, x8, #1
	smull	x9, w22, w23
	ldr	w9, [x21, x9]
	ldr	w10, [x24]
	and	w9, w10, w9
	cmp	w25, w20
	ccmp	w9, #0, #0, lt
	b.ne	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mul	x11, x25, x23
	ldr	w11, [x21, x11]
	tst	w11, w10
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	madd	x8, x8, x23, x21
	ldr	x2, [x8, #16]
	ldp	w1, w3, [x8, #4]
	madd	x8, x25, x23, x21
	ldr	x4, [x8, #16]
	ldr	w5, [x8, #8]
	mov	x0, x19
	bl	_dibusb_i2c_msg
	tbnz	x0, #63, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w25, w22, #2
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	madd	x10, x8, x23, x21
	ldr	w1, [x10, #4]
	cbz	w9, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w1, #80
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	madd	x8, x8, x23, x21
	ldr	x4, [x8, #16]
	ldr	w5, [x8, #8]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	bl	_dibusb_i2c_msg
	tbnz	x0, #63, LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x25
	cmp	w25, w20
	b.lt	LBB0_4
	b	LBB0_14
LBB0_12:
Lloh2:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_15
LBB0_13:
	mov	w22, #0
LBB0_14:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_15:
	mov	x0, x22
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.no_dead_strip	_dibusb_i2c_xfer
.subsections_via_symbols
