	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_conf1_read
_pci_conf1_read:                        ## @pci_conf1_read
	.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
	movq	%r9, %r14
	movl	%edx, %eax
	orl	%esi, %eax
	cmpl	$255, %eax
	ja	LBB0_2
## %bb.1:
	movl	%ecx, %r12d
	cmpl	$4096, %ecx                     ## imm = 0x1000
	jge	LBB0_2
## %bb.3:
	movl	%r8d, %r15d
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	_pci_config_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movl	%ebx, %edi
	movl	%r13d, %esi
	movl	%r12d, %edx
	callq	_PCI_CONF1_ADDRESS
	movl	%eax, %edi
	movl	$3320, %esi                     ## imm = 0xCF8
	callq	_outl
	cmpl	$4, %r15d
	je	LBB0_8
## %bb.4:
	cmpl	$2, %r15d
	je	LBB0_7
## %bb.5:
	cmpl	$1, %r15d
	jne	LBB0_10
## %bb.6:
	orl	$3324, %r12d                    ## imm = 0xCFC
	andl	$3327, %r12d                    ## imm = 0xCFF
	movl	%r12d, %edi
	callq	_inb
	jmp	LBB0_9
LBB0_2:
	movl	$-1, (%r14)
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_8:
	movl	$3324, %edi                     ## imm = 0xCFC
	callq	_inl
	jmp	LBB0_9
LBB0_7:
	andl	$2, %r12d
	orl	$3324, %r12d                    ## imm = 0xCFC
	movl	%r12d, %edi
	callq	_inw
LBB0_9:
	movl	%eax, (%r14)
LBB0_10:
	movq	_pci_config_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_pci_config_lock,4,2            ## @pci_config_lock
	.no_dead_strip	_pci_conf1_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_conf1_read
_pci_conf1_read:                        ; @pci_conf1_read
	.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
	mov	x19, x5
	orr	w8, w2, w1
	cmp	w8, #255
	b.hi	LBB0_6
; %bb.1:
	mov	x20, x3
	cmp	w3, #1, lsl #12                 ; =4096
	b.ge	LBB0_6
; %bb.2:
	mov	x21, x4
	mov	x22, x2
	mov	x23, x1
Lloh0:
	adrp	x0, _pci_config_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _pci_config_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
	mov	x0, x23
	mov	x1, x22
	mov	x2, x20
	bl	_PCI_CONF1_ADDRESS
	mov	w1, #3320
	bl	_outl
	cmp	w21, #4
	b.eq	LBB0_7
; %bb.3:
	cmp	w21, #2
	b.eq	LBB0_8
; %bb.4:
	cmp	w21, #1
	b.ne	LBB0_10
; %bb.5:
	mov	w0, #3324
	bfxil	w0, w20, #0, #2
	bl	_inb
	b	LBB0_9
LBB0_6:
	mov	w8, #-1
	str	w8, [x19]
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_7:
	mov	w0, #3324
	bl	_inl
	b	LBB0_9
LBB0_8:
	and	w8, w20, #0x2
	mov	w9, #3324
	orr	w0, w8, w9
	bl	_inw
LBB0_9:
	str	w0, [x19]
LBB0_10:
Lloh5:
	adrp	x0, _pci_config_lock@GOTPAGE
Lloh6:
	ldr	x0, [x0, _pci_config_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	mov	w0, #0
LBB0_11:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_pci_config_lock,4,2            ; @pci_config_lock
	.no_dead_strip	_pci_conf1_read
.subsections_via_symbols
