	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_i2c_check_ack
_mtk_i2c_check_ack:                     ## @mtk_i2c_check_ack
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	movq	_REG_SM0CTL1_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	(%rdi), %rax
	movq	%rax, %rdi
	callq	_readl_relaxed
	shll	$16, %ebx
	movq	_SM0CTL1_ACK_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	subl	(%rcx), %edx
	notl	%eax
	andl	%ebx, %eax
	testl	%eax, %eax
	cmovnel	%edx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_SM0CTL1_REG,8,3            ## @REG_SM0CTL1_REG
	.comm	_SM0CTL1_ACK_MASK,4,2           ## @SM0CTL1_ACK_MASK
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_mtk_i2c_check_ack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_i2c_check_ack
_mtk_i2c_check_ack:                     ; @mtk_i2c_check_ack
	.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, x1
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _REG_SM0CTL1_REG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _REG_SM0CTL1_REG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh3:
	adrp	x8, _SM0CTL1_ACK_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SM0CTL1_ACK_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w19, lsl #16
Lloh6:
	adrp	x9, _ENXIO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ENXIO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	bics	wzr, w8, w0
	csneg	w0, wzr, w9, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_SM0CTL1_REG,8,3            ; @REG_SM0CTL1_REG
	.comm	_SM0CTL1_ACK_MASK,4,2           ; @SM0CTL1_ACK_MASK
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_mtk_i2c_check_ack
.subsections_via_symbols
