	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nexus_print_all_resources
_nexus_print_all_resources:             ## @nexus_print_all_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_DEVTONX
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_STAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movslq	%eax, %r12
	jmp	LBB0_3
LBB0_1:
	xorl	%r12d, %r12d
LBB0_3:
	movq	_SYS_RES_IOPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %r14
	movq	%r15, %rdi
	movq	%r14, %rcx
	callq	_resource_list_print_type
	movq	%rax, %rbx
	addl	%r12d, %ebx
	movq	_SYS_RES_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rcx
	callq	_resource_list_print_type
	movq	%rax, %r14
	addl	%ebx, %r14d
	movq	_SYS_RES_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rsi
	leaq	L_.str.5(%rip), %rcx
	movq	%r15, %rdi
	callq	_resource_list_print_type
	addl	%r14d, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" at"

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

	.comm	_SYS_RES_IOPORT,4,2             ## @SYS_RES_IOPORT
L_.str.2:                               ## @.str.2
	.asciz	"%#jx"

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

	.comm	_SYS_RES_MEMORY,4,2             ## @SYS_RES_MEMORY
L_.str.4:                               ## @.str.4
	.asciz	"irq"

	.comm	_SYS_RES_IRQ,4,2                ## @SYS_RES_IRQ
L_.str.5:                               ## @.str.5
	.asciz	"%jd"

	.no_dead_strip	_nexus_print_all_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nexus_print_all_resources
_nexus_print_all_resources:             ; @nexus_print_all_resources
	.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
	bl	_DEVTONX
	mov	x19, x0
	bl	_STAILQ_FIRST
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	sxtw	x21, w0
	b	LBB0_3
LBB0_2:
	mov	x21, #0
LBB0_3:
Lloh2:
	adrp	x8, _SYS_RES_IOPORT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SYS_RES_IOPORT@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh7:
	adrp	x20, l_.str.2@PAGE
Lloh8:
	add	x20, x20, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_resource_list_print_type
	add	w21, w0, w21
Lloh9:
	adrp	x8, _SYS_RES_MEMORY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SYS_RES_MEMORY@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_resource_list_print_type
	add	w20, w21, w0
Lloh14:
	adrp	x8, _SYS_RES_IRQ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SYS_RES_IRQ@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
Lloh19:
	adrp	x3, l_.str.5@PAGE
Lloh20:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_resource_list_print_type
	add	w0, w20, w0
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" at"

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

	.comm	_SYS_RES_IOPORT,4,2             ; @SYS_RES_IOPORT
l_.str.2:                               ; @.str.2
	.asciz	"%#jx"

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

	.comm	_SYS_RES_MEMORY,4,2             ; @SYS_RES_MEMORY
l_.str.4:                               ; @.str.4
	.asciz	"irq"

	.comm	_SYS_RES_IRQ,4,2                ; @SYS_RES_IRQ
l_.str.5:                               ; @.str.5
	.asciz	"%jd"

	.no_dead_strip	_nexus_print_all_resources
.subsections_via_symbols
