	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function start_i2c_msg_xfer
_start_i2c_msg_xfer:                    ## @start_i2c_msg_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	jne	LBB0_2
## %bb.1:
	movq	_acpi_disabled@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_4
LBB0_2:
	leaq	8(%rbx), %r14
	movq	_MAILBOX_OP_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_wait_for_completion_timeout
	testl	%eax, %eax
	je	LBB0_3
LBB0_4:
	movq	(%rbx), %rcx
	xorl	%eax, %eax
	cmpl	$-1, (%rcx)
	jne	LBB0_7
## %bb.5:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_3:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_acpi_disabled,4,2              ## @acpi_disabled
	.comm	_MAILBOX_OP_TIMEOUT,4,2         ## @MAILBOX_OP_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_start_i2c_msg_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function start_i2c_msg_xfer
_start_i2c_msg_xfer:                    ; @start_i2c_msg_xfer
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _acpi_disabled@GOTPAGE
Lloh1:
	ldr	x9, [x9, _acpi_disabled@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	x8, #0
	ccmp	w9, #0, #4, eq
	b.ne	LBB0_2
; %bb.1:
	add	x20, x19, #8
Lloh3:
	adrp	x8, _MAILBOX_OP_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAILBOX_OP_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x20
	bl	_wait_for_completion_timeout
	cbz	w0, LBB0_5
LBB0_2:
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmn	w8, #1
	b.eq	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_7
LBB0_4:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_acpi_disabled,4,2              ; @acpi_disabled
	.comm	_MAILBOX_OP_TIMEOUT,4,2         ; @MAILBOX_OP_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_start_i2c_msg_xfer
.subsections_via_symbols
