	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function show_device
_show_device:                           ## @show_device
	.cfi_startproc
## %bb.0:
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.1:
	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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_pci_dev_driver
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	24(%r12), %rax
	movslq	(%rax), %rdx
	movl	20(%r12), %ecx
	movl	16(%r12), %r8d
	movl	8(%r12), %eax
	movl	12(%r12), %r9d
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_seq_printf
	movq	_PCI_ROM_RESOURCE@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	js	LBB0_10
## %bb.2:
	movq	$-1, %rbx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdx
	addq	%r13, %rdx
	incq	%rbx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%rcx, %r14
	leaq	-44(%rbp), %rcx
	leaq	-48(%rbp), %r8
	callq	_pci_resource_to_user
	movq	(%r12), %rax
	movq	_PCI_REGION_FLAG_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax,%r13), %ecx
	orl	-44(%rbp), %ecx
	movslq	%ecx, %rdx
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_seq_printf
	movq	%r14, %rcx
	movslq	(%r14), %rax
	addq	$24, %r13
	cmpq	%rax, %rbx
	jl	LBB0_3
## %bb.4:
	testl	%eax, %eax
	js	LBB0_10
## %bb.5:
	movq	$-1, %rbx
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movslq	-48(%rbp), %rdx
	movslq	-44(%rbp), %rax
	subq	%rax, %rdx
	incq	%rdx
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_seq_printf
	movq	%r14, %rax
	movslq	(%r14), %rax
	incq	%rbx
	addq	$24, %r13
	cmpq	%rax, %rbx
	jge	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdx
	addq	%r13, %rdx
	leal	1(%rbx), %esi
	movq	%r12, %rdi
	leaq	-44(%rbp), %rcx
	leaq	-48(%rbp), %r8
	callq	_pci_resource_to_user
	movq	(%r12), %rax
	movq	8(%rax,%r13), %rcx
	cmpq	16(%rax,%r13), %rcx
	jl	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_9
LBB0_10:
	movq	%r15, %rdi
	movl	$9, %esi
	callq	_seq_putc
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_seq_puts
LBB0_12:
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_seq_putc
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
LBB0_13:
	xorl	%eax, %eax
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%02x%02x\t%04x%04x\t%x"

	.comm	_PCI_ROM_RESOURCE,4,2           ## @PCI_ROM_RESOURCE
L_.str.1:                               ## @.str.1
	.asciz	"\t%16llx"

	.comm	_PCI_REGION_FLAG_MASK,4,2       ## @PCI_REGION_FLAG_MASK
	.no_dead_strip	_show_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function show_device
_show_device:                           ; @show_device
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_13
; %bb.1:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_pci_dev_driver
	mov	x20, x0
	ldr	x8, [x21, #24]
	ldrsw	x2, [x8]
	ldp	w9, w8, [x21, #16]
	ldp	w11, w10, [x21, #8]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_seq_printf
Lloh2:
	adrp	x24, _PCI_ROM_RESOURCE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _PCI_ROM_RESOURCE@GOTPAGEOFF]
	ldr	w8, [x24]
	tbnz	w8, #31, LBB0_10
; %bb.2:
	mov	x25, #0
	mov	x22, #-1
Lloh4:
	adrp	x26, _PCI_REGION_FLAG_MASK@GOTPAGE
Lloh5:
	ldr	x26, [x26, _PCI_REGION_FLAG_MASK@GOTPAGEOFF]
Lloh6:
	adrp	x23, l_.str.1@PAGE
Lloh7:
	add	x23, x23, l_.str.1@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x2, x8, x25
	add	x22, x22, #1
	add	x3, sp, #44
	add	x4, sp, #40
	mov	x0, x21
	mov	x1, x22
	bl	_pci_resource_to_user
	ldr	w8, [sp, #44]
	ldr	x9, [x21]
	ldr	w9, [x9, x25]
	ldr	w10, [x26]
	and	w9, w10, w9
	orr	w8, w9, w8
	sxtw	x2, w8
	mov	x0, x19
	mov	x1, x23
	bl	_seq_printf
	ldrsw	x8, [x24]
	add	x25, x25, #24
	cmp	x22, x8
	b.lt	LBB0_3
; %bb.4:
	tbnz	w8, #31, LBB0_10
; %bb.5:
	mov	x23, #0
	mov	x25, #-1
Lloh8:
	adrp	x22, l_.str.1@PAGE
Lloh9:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldpsw	x8, x9, [sp, #40]
	sub	x8, x8, x9
	add	x2, x8, #1
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_seq_printf
	ldrsw	x8, [x24]
	add	x25, x25, #1
	add	x23, x23, #24
	cmp	x25, x8
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x2, x8, x23
	add	w1, w25, #1
	add	x3, sp, #44
	add	x4, sp, #40
	mov	x0, x21
	bl	_pci_resource_to_user
	ldr	x8, [x21]
	add	x8, x8, x23
	ldp	x9, x8, [x8, #8]
	cmp	x9, x8
	b.lt	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x2, #0
	b	LBB0_7
LBB0_10:
	mov	x0, x19
	mov	w1, #9
	bl	_seq_putc
	cbz	x20, LBB0_12
; %bb.11:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_seq_puts
LBB0_12:
	mov	x0, x19
	mov	w1, #10
	bl	_seq_putc
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
LBB0_13:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	.cfi_same_value w25
	.cfi_same_value w26
	mov	w0, #0
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%02x%02x\t%04x%04x\t%x"

	.comm	_PCI_ROM_RESOURCE,4,2           ; @PCI_ROM_RESOURCE
l_.str.1:                               ; @.str.1
	.asciz	"\t%16llx"

	.comm	_PCI_REGION_FLAG_MASK,4,2       ; @PCI_REGION_FLAG_MASK
	.no_dead_strip	_show_device
.subsections_via_symbols
