	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mca_pc_write_pos
_mca_pc_write_pos:                      ## @mca_pc_write_pos
	.cfi_startproc
## %bb.0:
	cmpl	$7, %esi
	ja	LBB0_2
## %bb.1:
	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
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_mca_lock@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_MCA_MOTHERBOARD_SETUP_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$255, %edi
	callq	_outb_p
	movb	(%r14), %al
	andb	$7, %al
	orb	$8, %al
	movq	_MCA_ADAPTER_SETUP_REG@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movzbl	%al, %edi
	callq	_outb_p
	movl	%ebx, %edi
	callq	_MCA_POS_REG
	movzbl	%r12b, %r12d
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_outb_p
	movl	(%r13), %esi
	xorl	%edi, %edi
	callq	_outb_p
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	8(%r14), %rax
	movl	%ebx, %ecx
	movb	%r12b, (%rax,%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
LBB0_2:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mca_lock,4,2                   ## @mca_lock
	.comm	_MCA_MOTHERBOARD_SETUP_REG,4,2  ## @MCA_MOTHERBOARD_SETUP_REG
	.comm	_MCA_ADAPTER_SETUP_REG,4,2      ## @MCA_ADAPTER_SETUP_REG
	.no_dead_strip	_mca_pc_write_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_write_pos
_mca_pc_write_pos:                      ; @mca_pc_write_pos
	.cfi_startproc
; %bb.0:
	cmp	w1, #7
	b.hi	LBB0_2
; %bb.1:
	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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _mca_lock@GOTPAGE
Lloh1:
	ldr	x22, [x22, _mca_lock@GOTPAGEOFF]
	mov	x0, x22
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x8, _MCA_MOTHERBOARD_SETUP_REG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MCA_MOTHERBOARD_SETUP_REG@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #255
	bl	_outb_p
	ldrb	w8, [x21]
	mov	w0, #8
	bfxil	w0, w8, #0, #3
Lloh5:
	adrp	x23, _MCA_ADAPTER_SETUP_REG@GOTPAGE
Lloh6:
	ldr	x23, [x23, _MCA_ADAPTER_SETUP_REG@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_outb_p
	mov	x0, x20
	bl	_MCA_POS_REG
	mov	x1, x0
	mov	x0, x19
	bl	_outb_p
	ldr	w1, [x23]
	mov	w0, #0
	bl	_outb_p
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	x8, [x21, #8]
	strb	w19, [x8, w20, uxtw]
	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
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mca_lock,4,2                   ; @mca_lock
	.comm	_MCA_MOTHERBOARD_SETUP_REG,4,2  ; @MCA_MOTHERBOARD_SETUP_REG
	.comm	_MCA_ADAPTER_SETUP_REG,4,2      ; @MCA_ADAPTER_SETUP_REG
	.no_dead_strip	_mca_pc_write_pos
.subsections_via_symbols
