	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function keylargo_mb_content
_keylargo_mb_content:                   ## @keylargo_mb_content
	.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
	movq	_KL_GPIO_MEDIABAY_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MB_IN8
	movq	_KEYLARGO_GPIO_INPUT_DATA@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, (%rbx)
	movq	_MB_NO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_2:
	cmpl	$0, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	_KEYLARGO_MBCR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_KL_MBCR_MB0_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_MB_BIS
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_MB_IN32
	movl	$5, %edi
	callq	_udelay
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$15, %edx
	callq	_MB_BIC
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_MB_IN32
	movl	$5, %edi
	callq	_udelay
	movl	$0, (%rbx)
LBB0_4:
	movq	_KEYLARGO_MBCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_MB_IN32
	shrl	$4, %eax
	andl	$7, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KL_GPIO_MEDIABAY_IRQ,4,2       ## @KL_GPIO_MEDIABAY_IRQ
	.comm	_KEYLARGO_GPIO_INPUT_DATA,4,2   ## @KEYLARGO_GPIO_INPUT_DATA
	.comm	_MB_NO,4,2                      ## @MB_NO
	.comm	_KEYLARGO_MBCR,4,2              ## @KEYLARGO_MBCR
	.comm	_KL_MBCR_MB0_ENABLE,4,2         ## @KL_MBCR_MB0_ENABLE
	.no_dead_strip	_keylargo_mb_content
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function keylargo_mb_content
_keylargo_mb_content:                   ; @keylargo_mb_content
	.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
Lloh0:
	adrp	x8, _KL_GPIO_MEDIABAY_IRQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KL_GPIO_MEDIABAY_IRQ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_MB_IN8
Lloh3:
	adrp	x8, _KEYLARGO_GPIO_INPUT_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KEYLARGO_GPIO_INPUT_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ands	w8, w8, w0
	b.eq	LBB0_2
; %bb.1:
	str	w8, [x19]
Lloh6:
	adrp	x8, _MB_NO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MB_NO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_2:
	ldr	w8, [x19]
Lloh9:
	adrp	x20, _KEYLARGO_MBCR@GOTPAGE
Lloh10:
	ldr	x20, [x20, _KEYLARGO_MBCR@GOTPAGEOFF]
	cbz	w8, LBB0_4
; %bb.3:
	ldr	w1, [x20]
Lloh11:
	adrp	x8, _KL_MBCR_MB0_ENABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KL_MBCR_MB0_ENABLE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_MB_BIS
	ldr	w1, [x20]
	mov	x0, x19
	bl	_MB_IN32
	mov	w0, #5
	bl	_udelay
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #15
	bl	_MB_BIC
	ldr	w1, [x20]
	mov	x0, x19
	bl	_MB_IN32
	mov	w0, #5
	bl	_udelay
	str	wzr, [x19]
LBB0_4:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_MB_IN32
	ubfx	w0, w0, #4, #3
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_KL_GPIO_MEDIABAY_IRQ,4,2       ; @KL_GPIO_MEDIABAY_IRQ
	.comm	_KEYLARGO_GPIO_INPUT_DATA,4,2   ; @KEYLARGO_GPIO_INPUT_DATA
	.comm	_MB_NO,4,2                      ; @MB_NO
	.comm	_KEYLARGO_MBCR,4,2              ; @KEYLARGO_MBCR
	.comm	_KL_MBCR_MB0_ENABLE,4,2         ; @KL_MBCR_MB0_ENABLE
	.no_dead_strip	_keylargo_mb_content
.subsections_via_symbols
