	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __i2c_lock_bus_helper
___i2c_lock_bus_helper:                 ## @__i2c_lock_bus_helper
	.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
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_i2c_in_atomic_xfer_mode
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	8(%rbx), %rax
	cmpl	$0, 4(%rax)
	jne	LBB0_3
## %bb.2:
	xorl	%r14d, %r14d
	cmpl	$0, (%rax)
	sete	%r14b
LBB0_3:
	movq	%rbx, %rdi
	callq	_dev_name
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_WARN
	movq	_I2C_LOCK_SEGMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_trylock_bus
	movq	%rax, %rcx
	movq	_EAGAIN@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	xorl	%edx, %edx
	testq	%rcx, %rcx
	cmovnel	%edx, %eax
	jmp	LBB0_5
LBB0_4:
	movq	_I2C_LOCK_SEGMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_lock_bus
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No atomic I2C transfer handler for '%s'\n"

	.comm	_I2C_LOCK_SEGMENT,4,2           ## @I2C_LOCK_SEGMENT
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	___i2c_lock_bus_helper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __i2c_lock_bus_helper
___i2c_lock_bus_helper:                 ; @__i2c_lock_bus_helper
	.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
	bl	_i2c_in_atomic_xfer_mode
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w9, [x8, #4]
	cbz	w9, LBB0_4
; %bb.2:
	mov	w20, #0
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _I2C_LOCK_SEGMENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_LOCK_SEGMENT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_lock_bus
	mov	w0, #0
	b	LBB0_6
LBB0_4:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w20, eq
LBB0_5:
	mov	x0, x19
	bl	_dev_name
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_WARN
Lloh5:
	adrp	x8, _I2C_LOCK_SEGMENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I2C_LOCK_SEGMENT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_trylock_bus
Lloh8:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w0, wzr, w8, ne
LBB0_6:
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No atomic I2C transfer handler for '%s'\n"

	.comm	_I2C_LOCK_SEGMENT,4,2           ; @I2C_LOCK_SEGMENT
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	___i2c_lock_bus_helper
.subsections_via_symbols
