	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib0700_i2c_xfer_new
_dib0700_i2c_xfer_new:                  ## @dib0700_i2c_xfer_new
	.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	$1080, %rsp                     ## imm = 0x438
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, -1088(%rbp)               ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_i2c_get_adapdata
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	js	LBB0_3
## %bb.1:
	testl	%ebx, %ebx
	jle	LBB0_2
## %bb.4:
	movl	%ebx, %eax
	movq	%rax, -1104(%rbp)               ## 8-byte Spill
	decl	%ebx
	movq	-1088(%rbp), %rax               ## 8-byte Reload
	leaq	16(%rax), %r14
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movq	%r13, -1096(%rbp)               ## 8-byte Spill
	movq	%rbx, -1112(%rbp)               ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_REQUEST_NEW_I2C_WRITE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movl	%ecx, -1072(%rbp)
	movl	-12(%r14), %ecx
	addl	%ecx, %ecx
	movl	%ecx, -1068(%rbp)
	movl	%esi, %ecx
	shll	$6, %ecx
	orl	%ecx, %eax
	movl	-8(%r14), %edx
	movl	%edx, %ecx
	andl	$63, %ecx
	orl	%eax, %ecx
	movl	%ecx, -1064(%rbp)
	movl	$16, -1060(%rbp)
	movq	(%r14), %rsi
	leaq	-1056(%rbp), %rdi
	callq	_memcpy
	leaq	L_.str.2(%rip), %rdi
	callq	_deb_data
	movl	-8(%r14), %esi
	addl	$4, %esi
	leaq	-1072(%rbp), %rdi
	movq	_deb_data@GOTPCREL(%rip), %rdx
	callq	_debug_dump
	movl	4(%r13), %r12d
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	(%rbx), %edx
	movl	-8(%r14), %ebx
	addl	$4, %ebx
	movq	_USB_CTRL_GET_TIMEOUT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r10d
	subq	$8, %rsp
	movl	%r12d, %edi
	movl	%eax, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r10
	pushq	%rbx
	leaq	-1072(%rbp), %rax
	pushq	%rax
	callq	_usb_control_msg
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_15
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	addq	$24, %r14
	cmpq	%r15, -1104(%rbp)               ## 8-byte Folded Reload
	movq	-1112(%rbp), %rbx               ## 8-byte Reload
	movl	-1076(%rbp), %esi               ## 4-byte Reload
	je	LBB0_12
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r15, %r15
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-16(%r14), %ecx
	xorl	%eax, %eax
	movq	_I2C_M_NOSTART@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	sete	%al
	shll	$7, %eax
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-1088(%rbp), %rax               ## 8-byte Reload
	movl	(%rax), %ecx
	movl	$128, %eax
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%r15, %rbx
	movl	$1, %edx
	cmovel	%edx, %esi
	movq	_I2C_M_RD@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	movl	%esi, -1076(%rbp)               ## 4-byte Spill
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-12(%r14), %ecx
	movl	-8(%r14), %r12d
	addl	%ecx, %ecx
	movl	%esi, %edx
	shll	$6, %edx
	orl	%eax, %edx
	andl	$63, %r12d
	orl	%edx, %r12d
	shll	$8, %r12d
	orl	%ecx, %r12d
	movl	4(%r13), %r13d
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movq	_REQUEST_NEW_I2C_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movl	-8(%r14), %r10d
	movq	_USB_CTRL_GET_TIMEOUT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
	subq	$8, %rsp
	movl	%r13d, %edi
	movl	%eax, %esi
	movl	%r12d, %r8d
	movl	$16, %r9d
	pushq	%rbx
	pushq	%r10
	pushq	(%r14)
	callq	_usb_control_msg
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_deb_data
	movq	(%r14), %rdi
	movl	-8(%r14), %esi
	movq	_deb_data@GOTPCREL(%rip), %rdx
	callq	_debug_dump
	movq	-1096(%rbp), %r13               ## 8-byte Reload
	jmp	LBB0_11
LBB0_3:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_17
LBB0_2:
	xorl	%r15d, %r15d
	jmp	LBB0_16
LBB0_12:
	movq	-1104(%rbp), %r15               ## 8-byte Reload
                                        ## kill: def $r15d killed $r15d killed $r15 def $r15
	jmp	LBB0_16
LBB0_13:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_err
	movq	-1096(%rbp), %r13               ## 8-byte Reload
	jmp	LBB0_16
LBB0_15:
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	callq	_err
LBB0_16:
	movq	%r13, %rdi
	callq	_mutex_unlock
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	movl	%r15d, %eax
	addq	$1080, %rsp                     ## imm = 0x438
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_I2C_M_NOSTART,4,2              ## @I2C_M_NOSTART
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_REQUEST_NEW_I2C_READ,4,2       ## @REQUEST_NEW_I2C_READ
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.comm	_USB_CTRL_GET_TIMEOUT,4,2       ## @USB_CTRL_GET_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c read error (status = %d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"<<< "

	.comm	_REQUEST_NEW_I2C_WRITE,4,2      ## @REQUEST_NEW_I2C_WRITE
L_.str.2:                               ## @.str.2
	.asciz	">>> "

	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
L_.str.3:                               ## @.str.3
	.asciz	"i2c write error (status = %d)\n"

	.no_dead_strip	_dib0700_i2c_xfer_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib0700_i2c_xfer_new
_dib0700_i2c_xfer_new:                  ; @dib0700_i2c_xfer_new
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #1072
	mov	x24, x2
	str	x1, [sp, #24]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	bl	_i2c_get_adapdata
	mov	x19, x0
	bl	_mutex_lock_interruptible
	tbnz	x0, #63, LBB0_11
; %bb.1:
	subs	w28, w24, #1
	b.lt	LBB0_12
; %bb.2:
	mov	x20, #0
	mov	w25, #0
	add	x8, sp, #36
	add	x8, x8, #16
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x22, x8, #8
Lloh3:
	adrp	x21, _USB_TYPE_VENDOR@GOTPAGE
Lloh4:
	ldr	x21, [x21, _USB_TYPE_VENDOR@GOTPAGEOFF]
	mov	w24, w24
Lloh5:
	adrp	x23, _USB_CTRL_GET_TIMEOUT@GOTPAGE
Lloh6:
	ldr	x23, [x23, _USB_CTRL_GET_TIMEOUT@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh7:
	adrp	x27, _REQUEST_NEW_I2C_WRITE@GOTPAGE
Lloh8:
	ldr	x27, [x27, _REQUEST_NEW_I2C_WRITE@GOTPAGEOFF]
	ldr	w9, [x27]
	ldp	w10, w2, [x22, #-4]
	lsl	w10, w10, #1
	stp	w9, w10, [sp, #36]
	orr	w8, w8, w25, lsl #6
	and	w9, w2, #0x3f
	orr	w8, w8, w9
	str	w8, [sp, #44]
	mov	w8, #16
	str	w8, [sp, #48]
	ldr	x1, [x22, #8]
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_memcpy
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_deb_data
	ldr	w8, [x22]
	add	w1, w8, #4
	add	x0, sp, #36
Lloh11:
	adrp	x2, _deb_data@GOTPAGE
Lloh12:
	ldr	x2, [x2, _deb_data@GOTPAGEOFF]
	bl	_debug_dump
	ldr	w26, [x19, #4]
	mov	x0, x26
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
	ldr	w2, [x27]
	ldr	w8, [x21]
Lloh13:
	adrp	x9, _USB_DIR_OUT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _USB_DIR_OUT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w3, w9, w8
	ldr	w8, [x22]
	add	w7, w8, #4
	ldr	w8, [x23]
	str	w8, [sp]
	add	x6, sp, #36
	mov	x0, x26
	mov	w4, #0
	mov	w5, #0
	bl	_usb_control_msg
	tbnz	w0, #31, LBB0_15
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	add	x22, x22, #24
	cmp	x24, x20
	b.eq	LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x20, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	w9, [x22, #-8]
Lloh16:
	adrp	x8, _I2C_M_NOSTART@GOTPAGE
Lloh17:
	ldr	x8, [x8, _I2C_M_NOSTART@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w9
	cset	w8, eq
	lsl	w8, w8, #7
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w9, [x8]
	mov	w8, #128
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	x28, x20
	csinc	w25, w25, wzr, ne
Lloh19:
	adrp	x10, _I2C_M_RD@GOTPAGE
Lloh20:
	ldr	x10, [x10, _I2C_M_RD@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	w9, w10, [x22, #-4]
	orr	w8, w8, w25, lsl #6
	and	w10, w10, #0x3f
	orr	w8, w10, w8
	lsl	w8, w8, #8
	orr	w26, w8, w9, lsl #1
	ldr	w27, [x19, #4]
	mov	x0, x27
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
Lloh22:
	adrp	x8, _REQUEST_NEW_I2C_READ@GOTPAGE
Lloh23:
	ldr	x8, [x8, _REQUEST_NEW_I2C_READ@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	ldr	w8, [x21]
Lloh25:
	adrp	x9, _USB_DIR_IN@GOTPAGE
Lloh26:
	ldr	x9, [x9, _USB_DIR_IN@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w3, w9, w8
	ldr	x6, [x22, #8]
	ldr	w7, [x22]
	ldr	w8, [x23]
	str	w8, [sp]
	mov	x0, x27
	mov	x4, x26
	mov	w5, #16
	bl	_usb_control_msg
	tbnz	w0, #31, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh28:
	adrp	x0, l_.str.1@PAGE
Lloh29:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_deb_data
	ldr	x0, [x22, #8]
	ldr	w1, [x22]
Lloh30:
	adrp	x2, _deb_data@GOTPAGE
Lloh31:
	ldr	x2, [x2, _deb_data@GOTPAGEOFF]
	bl	_debug_dump
	b	LBB0_4
LBB0_11:
Lloh32:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_18
LBB0_12:
	mov	w20, #0
	b	LBB0_17
LBB0_13:
	mov	x20, x24
	b	LBB0_17
LBB0_14:
	mov	x1, x0
Lloh35:
	adrp	x0, l_.str@PAGE
Lloh36:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_16
LBB0_15:
	mov	x1, x0
Lloh37:
	adrp	x0, l_.str.3@PAGE
Lloh38:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_16:
	bl	_err
LBB0_17:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_18:
	ldur	x8, [x29, #-96]
Lloh39:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh40:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	mov	x0, x20
	add	sp, sp, #1072
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_I2C_M_NOSTART,4,2              ; @I2C_M_NOSTART
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_REQUEST_NEW_I2C_READ,4,2       ; @REQUEST_NEW_I2C_READ
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.comm	_USB_CTRL_GET_TIMEOUT,4,2       ; @USB_CTRL_GET_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c read error (status = %d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"<<< "

	.comm	_REQUEST_NEW_I2C_WRITE,4,2      ; @REQUEST_NEW_I2C_WRITE
l_.str.2:                               ; @.str.2
	.asciz	">>> "

	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
l_.str.3:                               ; @.str.3
	.asciz	"i2c write error (status = %d)\n"

	.no_dead_strip	_dib0700_i2c_xfer_new
.subsections_via_symbols
