	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_pci_entry
_do_pci_entry:                          ## @do_pci_entry
	.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	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %edi
	callq	_TO_NATIVE
	movl	%eax, (%rbx)
	movl	4(%rbx), %edi
	callq	_TO_NATIVE
	movl	%eax, 4(%rbx)
	movl	8(%rbx), %edi
	callq	_TO_NATIVE
	movl	%eax, 8(%rbx)
	movl	12(%rbx), %edi
	callq	_TO_NATIVE
	movl	%eax, 12(%rbx)
	movl	16(%rbx), %edi
	callq	_TO_NATIVE
	movl	%eax, 16(%rbx)
	movl	20(%rbx), %edi
	callq	_TO_NATIVE
	movl	%eax, 20(%rbx)
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcpy
	movslq	(%rbx), %rax
	movq	_PCI_ANY_ID@GOTPCREL(%rip), %r12
	xorl	%edx, %edx
	cmpq	%rax, (%r12)
	setne	%dl
	movzbl	%al, %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_ADD
	movslq	4(%rbx), %rax
	xorl	%edx, %edx
	cmpq	%rax, (%r12)
	setne	%dl
	movzbl	%al, %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_ADD
	movslq	8(%rbx), %rax
	xorl	%edx, %edx
	cmpq	%rax, (%r12)
	setne	%dl
	movzbl	%al, %ecx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_ADD
	movslq	12(%rbx), %rax
	xorl	%edx, %edx
	cmpq	%rax, (%r12)
	setne	%dl
	movzbl	%al, %ecx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_ADD
	movl	20(%rbx), %r12d
	movl	%r12d, %eax
	shrl	$16, %eax
	incb	%al
	cmpb	$1, %al
	ja	LBB0_3
## %bb.1:
	movl	%r12d, %eax
	shrl	$8, %eax
	incb	%al
	cmpb	$1, %al
	ja	LBB0_3
## %bb.2:
	leal	1(%r12), %eax
	cmpb	$2, %al
	jae	LBB0_3
## %bb.4:
	movl	16(%rbx), %r14d
	movl	%r14d, %eax
	shrl	$16, %eax
	movl	%r14d, %r13d
	shrl	$8, %r13d
	movl	%r12d, %ebx
	notl	%ebx
	xorl	%edx, %edx
	testl	$16711680, %ebx                 ## imm = 0xFF0000
	sete	%dl
	movzbl	%al, %ecx
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_ADD
	xorl	%edx, %edx
	testl	$65280, %ebx                    ## imm = 0xFF00
	sete	%dl
	movzbl	%r13b, %ecx
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	callq	_ADD
	xorl	%edx, %edx
	cmpb	$-1, %r12b
	sete	%dl
	movzbl	%r14b, %ecx
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	callq	_ADD
	movq	%r15, %rdi
	callq	_add_wildcard
	movl	$1, %eax
	jmp	LBB0_5
LBB0_3:
	movzbl	%r12b, %edx
	leaq	L_.str.5(%rip), %rdi
	movq	%r14, %rsi
	callq	_warn
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pci:"

L_.str.1:                               ## @.str.1
	.asciz	"v"

	.comm	_PCI_ANY_ID,8,3                 ## @PCI_ANY_ID
L_.str.2:                               ## @.str.2
	.asciz	"d"

L_.str.3:                               ## @.str.3
	.asciz	"sv"

L_.str.4:                               ## @.str.4
	.asciz	"sd"

L_.str.5:                               ## @.str.5
	.asciz	"Can't handle masks in %s:%04X\n"

L_.str.6:                               ## @.str.6
	.asciz	"bc"

L_.str.7:                               ## @.str.7
	.asciz	"sc"

L_.str.8:                               ## @.str.8
	.asciz	"i"

	.no_dead_strip	_do_pci_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_pci_entry
_do_pci_entry:                          ; @do_pci_entry
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w0, [x1]
	bl	_TO_NATIVE
	str	w0, [x21]
	ldr	w0, [x21, #4]
	bl	_TO_NATIVE
	str	w0, [x21, #4]
	ldr	w0, [x21, #8]
	bl	_TO_NATIVE
	str	w0, [x21, #8]
	ldr	w0, [x21, #12]
	bl	_TO_NATIVE
	str	w0, [x21, #12]
	ldr	w0, [x21, #16]
	bl	_TO_NATIVE
	str	w0, [x21, #16]
	ldr	w0, [x21, #20]
	bl	_TO_NATIVE
	str	w0, [x21, #20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strcpy
	ldrsw	x8, [x21]
Lloh2:
	adrp	x22, _PCI_ANY_ID@GOTPAGE
Lloh3:
	ldr	x22, [x22, _PCI_ANY_ID@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x9, x8
	cset	w2, ne
	and	w3, w8, #0xff
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ADD
	ldrsw	x8, [x21, #4]
	ldr	x9, [x22]
	cmp	x9, x8
	cset	w2, ne
	and	w3, w8, #0xff
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ADD
	ldrsw	x8, [x21, #8]
	ldr	x9, [x22]
	cmp	x9, x8
	cset	w2, ne
	and	w3, w8, #0xff
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_ADD
	ldrsw	x8, [x21, #12]
	ldr	x9, [x22]
	cmp	x9, x8
	cset	w2, ne
	and	w3, w8, #0xff
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_ADD
	ldp	w22, w21, [x21, #16]
	ubfx	w8, w21, #16, #8
	cmp	w8, #255
	b.eq	LBB0_2
; %bb.1:
	cbnz	w8, LBB0_7
LBB0_2:
	ubfx	w8, w21, #8, #8
	cmp	w8, #255
	b.eq	LBB0_4
; %bb.3:
	cbnz	w8, LBB0_7
LBB0_4:
	ands	w8, w21, #0xff
	b.eq	LBB0_6
; %bb.5:
	cmp	w8, #255
	b.ne	LBB0_7
LBB0_6:
	mov	w8, #16711680
	bics	wzr, w8, w21
	cset	w2, eq
	ubfx	w3, w22, #16, #8
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_ADD
	mov	w8, #65280
	bics	wzr, w8, w21
	cset	w2, eq
	ubfx	w3, w22, #8, #8
Lloh14:
	adrp	x1, l_.str.7@PAGE
Lloh15:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_ADD
	mov	w8, #255
	bics	wzr, w8, w21
	cset	w2, eq
	and	w3, w22, #0xff
Lloh16:
	adrp	x1, l_.str.8@PAGE
Lloh17:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_ADD
	mov	x0, x19
	bl	_add_wildcard
	mov	w0, #1
	b	LBB0_8
LBB0_7:
	and	w2, w21, #0xff
Lloh18:
	adrp	x0, l_.str.5@PAGE
Lloh19:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x20
	bl	_warn
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pci:"

l_.str.1:                               ; @.str.1
	.asciz	"v"

	.comm	_PCI_ANY_ID,8,3                 ; @PCI_ANY_ID
l_.str.2:                               ; @.str.2
	.asciz	"d"

l_.str.3:                               ; @.str.3
	.asciz	"sv"

l_.str.4:                               ; @.str.4
	.asciz	"sd"

l_.str.5:                               ; @.str.5
	.asciz	"Can't handle masks in %s:%04X\n"

l_.str.6:                               ; @.str.6
	.asciz	"bc"

l_.str.7:                               ; @.str.7
	.asciz	"sc"

l_.str.8:                               ; @.str.8
	.asciz	"i"

	.no_dead_strip	_do_pci_entry
.subsections_via_symbols
