	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mca_pc_read_pos
_mca_pc_read_pos:                       ## @mca_pc_read_pos
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$7, %esi
	jbe	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_2:
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	_mca_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	cmpl	$0, (%r14)
	je	LBB0_4
## %bb.3:
	movq	_MCA_ADAPTER_SETUP_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_outb_p
	movl	(%r14), %edi
	movl	$255, %r15d
	movq	_MCA_MOTHERBOARD_SETUP_REG@GOTPCREL(%rip), %r13
	jmp	LBB0_5
LBB0_4:
	movq	_MCA_MOTHERBOARD_SETUP_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$255, %edi
	callq	_outb_p
	movl	4(%r14), %edi
	andl	$7, %edi
	orl	$8, %edi
	xorl	%r15d, %r15d
	movq	_MCA_ADAPTER_SETUP_REG@GOTPCREL(%rip), %r13
LBB0_5:
	movl	(%r13), %esi
	callq	_outb_p
	movl	%r12d, %edi
	callq	_MCA_POS_REG
	movl	%eax, %edi
	callq	_inb_p
	movl	%eax, %ebx
	movl	(%r13), %esi
	movl	%r15d, %edi
	callq	_outb_p
	movq	_mca_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movq	8(%r14), %rax
	movl	%r12d, %ecx
	movb	%bl, (%rax,%rcx)
LBB0_6:
	movzbl	%bl, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mca_lock,4,2                   ## @mca_lock
	.comm	_MCA_ADAPTER_SETUP_REG,4,2      ## @MCA_ADAPTER_SETUP_REG
	.comm	_MCA_MOTHERBOARD_SETUP_REG,4,2  ## @MCA_MOTHERBOARD_SETUP_REG
	.no_dead_strip	_mca_pc_read_pos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mca_pc_read_pos
_mca_pc_read_pos:                       ; @mca_pc_read_pos
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cmp	w1, #7
	b.ls	LBB0_2
; %bb.1:
	mov	w22, #0
	b	LBB0_6
LBB0_2:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, _mca_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _mca_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
	ldr	w8, [x20]
	cbz	w8, LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _MCA_ADAPTER_SETUP_REG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MCA_ADAPTER_SETUP_REG@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_outb_p
	ldr	w0, [x20]
	mov	w21, #255
Lloh5:
	adrp	x23, _MCA_MOTHERBOARD_SETUP_REG@GOTPAGE
Lloh6:
	ldr	x23, [x23, _MCA_MOTHERBOARD_SETUP_REG@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x8, _MCA_MOTHERBOARD_SETUP_REG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MCA_MOTHERBOARD_SETUP_REG@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w0, #255
	bl	_outb_p
	mov	w21, #0
	ldr	w8, [x20, #4]
	mov	w0, #8
	bfxil	w0, w8, #0, #3
Lloh10:
	adrp	x23, _MCA_ADAPTER_SETUP_REG@GOTPAGE
Lloh11:
	ldr	x23, [x23, _MCA_ADAPTER_SETUP_REG@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x23]
	bl	_outb_p
	mov	x0, x19
	bl	_MCA_POS_REG
	bl	_inb_p
	mov	x22, x0
	ldr	w1, [x23]
	mov	x0, x21
	bl	_outb_p
Lloh12:
	adrp	x0, _mca_lock@GOTPAGE
Lloh13:
	ldr	x0, [x0, _mca_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	ldr	x8, [x20, #8]
	strb	w22, [x8, w19, uxtw]
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_mca_lock,4,2                   ; @mca_lock
	.comm	_MCA_ADAPTER_SETUP_REG,4,2      ; @MCA_ADAPTER_SETUP_REG
	.comm	_MCA_MOTHERBOARD_SETUP_REG,4,2  ; @MCA_MOTHERBOARD_SETUP_REG
	.no_dead_strip	_mca_pc_read_pos
.subsections_via_symbols
