	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function heathrow_mb_setup_bus
_heathrow_mb_setup_bus:                 ## @heathrow_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
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %rbx
	leal	-129(%rsi), %eax
	cmpl	$2, %eax
	jb	LBB0_8
## %bb.1:
	cmpl	$128, %esi
	je	LBB0_4
## %bb.2:
	cmpl	$131, %esi
	jne	LBB0_6
## %bb.3:
	movq	_HEATHROW_FCR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_HRW_IDE1_RESET_N@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_MB_BIC
	movl	(%r14), %esi
	movq	_HRW_BAY_IDE_ENABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_8:
	movq	_HEATHROW_FCR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_HRW_BAY_FLOPPY_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_MB_BIS
	movl	(%r14), %esi
	movq	_HRW_SWIM_ENABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_HEATHROW_FCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HRW_BAY_PCI_ENABLE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_MB_BIS
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HEATHROW_FCR,4,2               ## @HEATHROW_FCR
	.comm	_HRW_BAY_FLOPPY_ENABLE,4,2      ## @HRW_BAY_FLOPPY_ENABLE
	.comm	_HRW_SWIM_ENABLE,4,2            ## @HRW_SWIM_ENABLE
	.comm	_HRW_IDE1_RESET_N,4,2           ## @HRW_IDE1_RESET_N
	.comm	_HRW_BAY_IDE_ENABLE,4,2         ## @HRW_BAY_IDE_ENABLE
	.comm	_HRW_BAY_PCI_ENABLE,4,2         ## @HRW_BAY_PCI_ENABLE
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_heathrow_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 heathrow_mb_setup_bus
_heathrow_mb_setup_bus:                 ; @heathrow_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
	sub	w8, w1, #129
	cmp	w8, #2
	b.lo	LBB0_4
; %bb.1:
	cmp	w1, #128
	b.eq	LBB0_5
; %bb.2:
	cmp	w1, #131
	b.ne	LBB0_7
; %bb.3:
Lloh0:
	adrp	x20, _HEATHROW_FCR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _HEATHROW_FCR@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _HRW_IDE1_RESET_N@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HRW_IDE1_RESET_N@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_MB_BIC
	ldr	w1, [x20]
Lloh5:
	adrp	x8, _HRW_BAY_IDE_ENABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HRW_BAY_IDE_ENABLE@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh7:
	adrp	x20, _HEATHROW_FCR@GOTPAGE
Lloh8:
	ldr	x20, [x20, _HEATHROW_FCR@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh9:
	adrp	x8, _HRW_BAY_FLOPPY_ENABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HRW_BAY_FLOPPY_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_MB_BIS
	ldr	w1, [x20]
Lloh12:
	adrp	x8, _HRW_SWIM_ENABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HRW_SWIM_ENABLE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _HEATHROW_FCR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HEATHROW_FCR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _HRW_BAY_PCI_ENABLE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HRW_BAY_PCI_ENABLE@GOTPAGEOFF]
LBB0_6:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_MB_BIS
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh19:
	adrp	x8, _ENODEV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_HEATHROW_FCR,4,2               ; @HEATHROW_FCR
	.comm	_HRW_BAY_FLOPPY_ENABLE,4,2      ; @HRW_BAY_FLOPPY_ENABLE
	.comm	_HRW_SWIM_ENABLE,4,2            ; @HRW_SWIM_ENABLE
	.comm	_HRW_IDE1_RESET_N,4,2           ; @HRW_IDE1_RESET_N
	.comm	_HRW_BAY_IDE_ENABLE,4,2         ; @HRW_BAY_IDE_ENABLE
	.comm	_HRW_BAY_PCI_ENABLE,4,2         ; @HRW_BAY_PCI_ENABLE
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_heathrow_mb_setup_bus
.subsections_via_symbols
