	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_hid_start
_i2c_hid_start:                         ## @i2c_hid_start
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r15
	movq	_HID_MIN_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	_HID_INPUT_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %r12
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_i2c_hid_find_max_report
	movq	_HID_OUTPUT_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_i2c_hid_find_max_report
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_i2c_hid_find_max_report
	movl	-36(%rbp), %eax
	cmpl	(%r15), %eax
	jbe	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	callq	_disable_irq
	movq	%r15, %rdi
	callq	_i2c_hid_free_buffers
	movl	-36(%rbp), %esi
	movq	%r15, %rdi
	callq	_i2c_hid_alloc_buffers
	movl	%eax, %ebx
	movl	(%r14), %edi
	callq	_enable_irq
	testl	%ebx, %ebx
	jne	LBB0_3
LBB0_2:
	xorl	%ebx, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_MIN_BUFFER_SIZE,4,2        ## @HID_MIN_BUFFER_SIZE
	.comm	_HID_INPUT_REPORT,4,2           ## @HID_INPUT_REPORT
	.comm	_HID_OUTPUT_REPORT,4,2          ## @HID_OUTPUT_REPORT
	.comm	_HID_FEATURE_REPORT,4,2         ## @HID_FEATURE_REPORT
	.no_dead_strip	_i2c_hid_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_hid_start
_i2c_hid_start:                         ; @i2c_hid_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x0
	ldr	x19, [x0]
	mov	x0, x19
	bl	_i2c_get_clientdata
	mov	x20, x0
Lloh0:
	adrp	x8, _HID_MIN_BUFFER_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HID_MIN_BUFFER_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
Lloh3:
	adrp	x8, _HID_INPUT_REPORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HID_INPUT_REPORT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x21
	bl	_i2c_hid_find_max_report
Lloh6:
	adrp	x8, _HID_OUTPUT_REPORT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HID_OUTPUT_REPORT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x21
	bl	_i2c_hid_find_max_report
Lloh9:
	adrp	x8, _HID_FEATURE_REPORT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HID_FEATURE_REPORT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x21
	bl	_i2c_hid_find_max_report
	ldr	w8, [sp, #12]
	ldr	w9, [x20]
	cmp	w8, w9
	b.ls	LBB0_2
; %bb.1:
	ldr	w0, [x19]
	bl	_disable_irq
	mov	x0, x20
	bl	_i2c_hid_free_buffers
	ldr	w1, [sp, #12]
	mov	x0, x20
	bl	_i2c_hid_alloc_buffers
	mov	x20, x0
	ldr	w0, [x19]
	bl	_enable_irq
	cbnz	w20, LBB0_3
LBB0_2:
	mov	w20, #0
LBB0_3:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_MIN_BUFFER_SIZE,4,2        ; @HID_MIN_BUFFER_SIZE
	.comm	_HID_INPUT_REPORT,4,2           ; @HID_INPUT_REPORT
	.comm	_HID_OUTPUT_REPORT,4,2          ; @HID_OUTPUT_REPORT
	.comm	_HID_FEATURE_REPORT,4,2         ; @HID_FEATURE_REPORT
	.no_dead_strip	_i2c_hid_start
.subsections_via_symbols
