	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_emul_ecfg_handler
_pci_emul_ecfg_handler:                 ## @pci_emul_ecfg_handler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%r9, %r11
	movl	%r8d, %r10d
	movl	%ecx, %eax
	movq	_MEM_F_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%edx, %ecx
	jne	LBB0_2
## %bb.1:
	movl	$-1, (%r11)
LBB0_2:
	xorl	%ebx, %ebx
	cmpl	%edx, %ecx
	sete	%bl
	movl	%eax, %ecx
	shrl	$20, %ecx
	movzbl	%cl, %ecx
	movl	%eax, %r8d
	shrl	$15, %r8d
	andl	$31, %r8d
	movl	%eax, %r9d
	shrl	$12, %r9d
	andl	$7, %r9d
	andl	$4095, %eax                     ## imm = 0xFFF
	subq	$8, %rsp
	movl	%ebx, %edx
	pushq	%r11
	pushq	%r10
	pushq	%rax
	callq	_pci_cfgrw
	addq	$32, %rsp
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEM_F_READ,4,2                 ## @MEM_F_READ
	.no_dead_strip	_pci_emul_ecfg_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_emul_ecfg_handler
_pci_emul_ecfg_handler:                 ; @pci_emul_ecfg_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	mov	x7, x4
Lloh0:
	adrp	x8, _MEM_F_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MEM_F_READ@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w9, w2
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #-1
	str	w8, [x5]
LBB0_2:
	ubfx	w8, w3, #20, #8
	cmp	w9, w2
	cset	w2, eq
	ubfx	w4, w3, #15, #5
	ubfx	w9, w3, #12, #3
	and	w6, w3, #0xfff
	str	x5, [sp]
	mov	x3, x8
	mov	x5, x9
	bl	_pci_cfgrw
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MEM_F_READ,4,2                 ; @MEM_F_READ
	.no_dead_strip	_pci_emul_ecfg_handler
.subsections_via_symbols
