	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_dw_probe_lock_support      ## -- Begin function i2c_dw_probe_lock_support
	.p2align	4, 0x90
_i2c_dw_probe_lock_support:             ## @i2c_dw_probe_lock_support
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	$0, -24(%rbp)
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	movl	12(%rdi), %edi
	testl	%edi, %edi
	je	LBB0_8
## %bb.2:
	callq	_ACPI_HANDLE
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	leaq	-24(%rbp), %rcx
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_acpi_evaluate_integer
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:
	cmpq	$0, -24(%rbp)
	je	LBB0_8
## %bb.5:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_iosf_mbi_available
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	12(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
	movq	_iosf_mbi_block_punit_i2c_access@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_iosf_mbi_unblock_punit_i2c_access@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	$1, (%rbx)
	jmp	LBB0_8
LBB0_6:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_SEM"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.1:                               ## @.str.1
	.asciz	"I2C bus managed by PUNIT\n"

	.comm	_iosf_mbi_block_punit_i2c_access,4,2 ## @iosf_mbi_block_punit_i2c_access
	.comm	_iosf_mbi_unblock_punit_i2c_access,4,2 ## @iosf_mbi_unblock_punit_i2c_access
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_dw_probe_lock_support      ; -- Begin function i2c_dw_probe_lock_support
	.p2align	2
_i2c_dw_probe_lock_support:             ; @i2c_dw_probe_lock_support
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	str	xzr, [sp, #8]
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #12]
	cbz	w0, LBB0_8
; %bb.2:
	bl	_ACPI_HANDLE
	cbz	w0, LBB0_8
; %bb.3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #8
	mov	x2, #0
	bl	_acpi_evaluate_integer
	bl	_ACPI_FAILURE
	ldr	x8, [sp, #8]
	cmp	x0, #0
	ccmp	x8, #0, #4, eq
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_8
LBB0_5:
	bl	_iosf_mbi_available
	cbz	w0, LBB0_7
; %bb.6:
	ldr	w0, [x19, #12]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
	mov	w0, #0
Lloh4:
	adrp	x8, _iosf_mbi_block_punit_i2c_access@GOTPAGE
Lloh5:
	ldr	x8, [x8, _iosf_mbi_block_punit_i2c_access@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh7:
	adrp	x8, _iosf_mbi_unblock_punit_i2c_access@GOTPAGE
Lloh8:
	ldr	x8, [x8, _iosf_mbi_unblock_punit_i2c_access@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	mov	w9, #1
	stp	w9, w8, [x19]
	b	LBB0_8
LBB0_7:
Lloh10:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_SEM"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.1:                               ; @.str.1
	.asciz	"I2C bus managed by PUNIT\n"

	.comm	_iosf_mbi_block_punit_i2c_access,4,2 ; @iosf_mbi_block_punit_i2c_access
	.comm	_iosf_mbi_unblock_punit_i2c_access,4,2 ; @iosf_mbi_unblock_punit_i2c_access
.subsections_via_symbols
