	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ioapic_pci_probe
_ioapic_pci_probe:                      ## @ioapic_pci_probe
	.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
	movl	%edi, %ebx
	callq	_pci_get_class
	movq	_PCIC_BASEPERIPH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	movl	%ebx, %edi
	callq	_pci_get_subclass
	movq	_PCIS_BASEPERIPH_PIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.2:
	movl	%ebx, %edi
	callq	_pci_get_progif
	cmpl	$128, %eax
	je	LBB0_3
## %bb.4:
	cmpl	$129, %eax
	jne	LBB0_7
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_7:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str(%rip), %rsi
LBB0_6:
	movl	%ebx, %edi
	callq	_device_set_desc
	movl	%ebx, %edi
	callq	_device_quiet
	movl	$-10000, %eax                   ## imm = 0xD8F0
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIC_BASEPERIPH,8,3            ## @PCIC_BASEPERIPH
	.comm	_PCIS_BASEPERIPH_PIC,8,3        ## @PCIS_BASEPERIPH_PIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IO APIC"

L_.str.1:                               ## @.str.1
	.asciz	"IO(x) APIC"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_ioapic_pci_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ioapic_pci_probe
_ioapic_pci_probe:                      ; @ioapic_pci_probe
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_pci_get_class
Lloh0:
	adrp	x8, _PCIC_BASEPERIPH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCIC_BASEPERIPH@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_pci_get_subclass
Lloh3:
	adrp	x8, _PCIS_BASEPERIPH_PIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCIS_BASEPERIPH_PIC@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_pci_get_progif
	cmp	w0, #128
	b.eq	LBB0_7
; %bb.3:
	cmp	w0, #129
	b.ne	LBB0_5
; %bb.4:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_5:
Lloh8:
	adrp	x8, _ENXIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_device_set_desc
	mov	x0, x19
	bl	_device_quiet
	mov	w0, #-10000
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PCIC_BASEPERIPH,8,3            ; @PCIC_BASEPERIPH
	.comm	_PCIS_BASEPERIPH_PIC,8,3        ; @PCIS_BASEPERIPH_PIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IO APIC"

l_.str.1:                               ; @.str.1
	.asciz	"IO(x) APIC"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_ioapic_pci_probe
.subsections_via_symbols
