	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resource_show
_resource_show:                         ## @resource_show
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	callq	_to_pci_dev
	movq	%rax, %r15
	cmpq	$0, 8(%rax)
	jne	LBB0_1
## %bb.2:
	movq	_PCI_BRIDGE_RESOURCES@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_DEVICE_COUNT_RESOURCE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movq	%rbx, %rcx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	jle	LBB0_6
## %bb.4:
	movl	%eax, %eax
	shlq	$3, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %r13
	leaq	(%r14,%r13), %rdx
	movq	%r15, %rdi
	movl	%r12d, %esi
	leaq	-72(%rbp), %rcx
	leaq	-64(%rbp), %r8
	callq	_pci_resource_to_user
	movq	-72(%rbp), %rdx
	movq	-64(%rbp), %rcx
	movq	(%r13,%r14), %r8
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_sprintf
	cltq
	addq	%rax, %rbx
	incl	%r12d
	addq	$8, %r14
	cmpq	%r14, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_5
LBB0_6:
	subl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEVICE_COUNT_RESOURCE,4,2      ## @DEVICE_COUNT_RESOURCE
	.comm	_PCI_BRIDGE_RESOURCES,4,2       ## @PCI_BRIDGE_RESOURCES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0x%016llx 0x%016llx 0x%016llx\n"

	.no_dead_strip	_resource_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resource_show
_resource_show:                         ; @resource_show
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	bl	_to_pci_dev
Lloh0:
	adrp	x8, _PCI_BRIDGE_RESOURCES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_BRIDGE_RESOURCES@GOTPAGEOFF]
Lloh2:
	adrp	x9, _DEVICE_COUNT_RESOURCE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DEVICE_COUNT_RESOURCE@GOTPAGEOFF]
	ldr	x10, [x0, #8]
	cmp	x10, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	mov	x22, x19
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x25, #0
	mov	w21, #0
	lsl	x26, x8, #3
	mov	x22, x19
Lloh4:
	adrp	x23, l_.str@PAGE
Lloh5:
	add	x23, x23, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x24, x8, x25
	add	x3, sp, #8
	mov	x4, sp
	mov	x0, x20
	mov	x1, x21
	mov	x2, x24
	bl	_pci_resource_to_user
	ldp	x3, x2, [sp]
	ldr	x4, [x24]
	mov	x0, x22
	mov	x1, x23
	bl	_sprintf
	add	x22, x22, w0, sxtw
	add	w21, w21, #1
	add	x25, x25, #8
	cmp	x26, x25
	b.ne	LBB0_2
LBB0_3:
	sub	w0, w22, w19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DEVICE_COUNT_RESOURCE,4,2      ; @DEVICE_COUNT_RESOURCE
	.comm	_PCI_BRIDGE_RESOURCES,4,2       ; @PCI_BRIDGE_RESOURCES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0x%016llx 0x%016llx 0x%016llx\n"

	.no_dead_strip	_resource_show
.subsections_via_symbols
