	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __dev_sort_resources
___dev_sort_resources:                  ## @__dev_sort_resources
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rdi), %eax
	sarl	$8, %eax
	cltq
	movq	_PCI_CLASS_NOT_DEFINED@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_5
## %bb.1:
	movq	_PCI_CLASS_BRIDGE_HOST@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_5
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_PCI_CLASS_SYSTEM_PIC@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_4
## %bb.3:
	movq	_PCI_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pci_read_config_word
	movq	_PCI_COMMAND_IO@GOTPCREL(%rip), %rax
	movq	_PCI_COMMAND_MEMORY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	(%rax), %rcx
	andq	-24(%rbp), %rcx
	jne	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_pdev_sort_resources
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_CLASS_NOT_DEFINED,8,3      ## @PCI_CLASS_NOT_DEFINED
	.comm	_PCI_CLASS_BRIDGE_HOST,8,3      ## @PCI_CLASS_BRIDGE_HOST
	.comm	_PCI_CLASS_SYSTEM_PIC,8,3       ## @PCI_CLASS_SYSTEM_PIC
	.comm	_PCI_COMMAND,4,2                ## @PCI_COMMAND
	.comm	_PCI_COMMAND_IO,8,3             ## @PCI_COMMAND_IO
	.comm	_PCI_COMMAND_MEMORY,8,3         ## @PCI_COMMAND_MEMORY
	.no_dead_strip	___dev_sort_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __dev_sort_resources
___dev_sort_resources:                  ; @__dev_sort_resources
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	w8, [x0]
	sbfx	x8, x8, #8, #24
Lloh0:
	adrp	x9, _PCI_CLASS_NOT_DEFINED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_CLASS_NOT_DEFINED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _PCI_CLASS_BRIDGE_HOST@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PCI_CLASS_BRIDGE_HOST@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x8
	ccmp	x10, x8, #4, ne
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh6:
	adrp	x9, _PCI_CLASS_SYSTEM_PIC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PCI_CLASS_SYSTEM_PIC@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _PCI_COMMAND@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCI_COMMAND@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x20
	bl	_pci_read_config_word
	ldr	x8, [sp, #8]
Lloh12:
	adrp	x9, _PCI_COMMAND_IO@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PCI_COMMAND_IO@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
Lloh15:
	adrp	x10, _PCI_COMMAND_MEMORY@GOTPAGE
Lloh16:
	ldr	x10, [x10, _PCI_COMMAND_MEMORY@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	orr	x9, x10, x9
	tst	x9, x8
	b.ne	LBB0_4
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_pdev_sort_resources
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_CLASS_NOT_DEFINED,8,3      ; @PCI_CLASS_NOT_DEFINED
	.comm	_PCI_CLASS_BRIDGE_HOST,8,3      ; @PCI_CLASS_BRIDGE_HOST
	.comm	_PCI_CLASS_SYSTEM_PIC,8,3       ; @PCI_CLASS_SYSTEM_PIC
	.comm	_PCI_COMMAND,4,2                ; @PCI_COMMAND
	.comm	_PCI_COMMAND_IO,8,3             ; @PCI_COMMAND_IO
	.comm	_PCI_COMMAND_MEMORY,8,3         ; @PCI_COMMAND_MEMORY
	.no_dead_strip	___dev_sort_resources
.subsections_via_symbols
