	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function keylargo_mb_setup_bus
_keylargo_mb_setup_bus:                 ## @keylargo_mb_setup_bus
	.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
	cmpl	$128, %esi
	je	LBB0_6
## %bb.1:
	cmpl	$129, %esi
	je	LBB0_4
## %bb.2:
	cmpl	$130, %esi
	jne	LBB0_7
## %bb.3:
	movq	_KEYLARGO_MBCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KL_MBCR_MB0_IDE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_MB_BIS
	movq	_KEYLARGO_FCR1@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_KL1_EIDE0_RESET_N@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_MB_BIC
	movl	(%r14), %esi
	movq	_KL1_EIDE0_ENABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	movq	_KEYLARGO_MBCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KL_MBCR_MB0_SOUND_ENABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_KEYLARGO_MBCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KL_MBCR_MB0_PCI_ENABLE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_MB_BIS
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_7:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KEYLARGO_MBCR,4,2              ## @KEYLARGO_MBCR
	.comm	_KL_MBCR_MB0_IDE_ENABLE,4,2     ## @KL_MBCR_MB0_IDE_ENABLE
	.comm	_KEYLARGO_FCR1,4,2              ## @KEYLARGO_FCR1
	.comm	_KL1_EIDE0_RESET_N,4,2          ## @KL1_EIDE0_RESET_N
	.comm	_KL1_EIDE0_ENABLE,4,2           ## @KL1_EIDE0_ENABLE
	.comm	_KL_MBCR_MB0_PCI_ENABLE,4,2     ## @KL_MBCR_MB0_PCI_ENABLE
	.comm	_KL_MBCR_MB0_SOUND_ENABLE,4,2   ## @KL_MBCR_MB0_SOUND_ENABLE
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_keylargo_mb_setup_bus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function keylargo_mb_setup_bus
_keylargo_mb_setup_bus:                 ; @keylargo_mb_setup_bus
	.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
	cmp	w1, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w1, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w1, #130
	b.ne	LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _KEYLARGO_MBCR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KEYLARGO_MBCR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _KL_MBCR_MB0_IDE_ENABLE@GOTPAGE
Lloh4:
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8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_KEYLARGO_MBCR,4,2              ; @KEYLARGO_MBCR
	.comm	_KL_MBCR_MB0_IDE_ENABLE,4,2     ; @KL_MBCR_MB0_IDE_ENABLE
	.comm	_KEYLARGO_FCR1,4,2              ; @KEYLARGO_FCR1
	.comm	_KL1_EIDE0_RESET_N,4,2          ; @KL1_EIDE0_RESET_N
	.comm	_KL1_EIDE0_ENABLE,4,2           ; @KL1_EIDE0_ENABLE
	.comm	_KL_MBCR_MB0_PCI_ENABLE,4,2     ; @KL_MBCR_MB0_PCI_ENABLE
	.comm	_KL_MBCR_MB0_SOUND_ENABLE,4,2   ; @KL_MBCR_MB0_SOUND_ENABLE
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_keylargo_mb_setup_bus
.subsections_via_symbols
