	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_resource_info              ## -- Begin function get_resource_info
	.p2align	4, 0x90
_get_resource_info:                     ## @get_resource_info
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	testl	%esi, %esi
	jle	LBB0_7
## %bb.1:
	movl	%esi, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	__PNP_ADDRESS@GOTPCREL(%rip), %rbx
	movq	_PNP_STATUS@GOTPCREL(%rip), %rax
	movq	_rd_port@GOTPCREL(%rip), %r14
	xorl	%r13d, %r13d
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%rbx, %r12
	movl	(%rbx), %edi
	movl	(%rax), %esi
	callq	_outb
	movl	$100, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r14), %eax
	leal	3(,%rax,4), %edi
	callq	_inb
	testb	$1, %al
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	$1, %edi
	callq	_DELAY
	decl	%r15d
	jne	LBB0_3
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rbx
	movl	(%r12), %edi
	movq	_PNP_RESOURCE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_outb
	movl	(%r14), %eax
	leal	3(,%rax,4), %edi
	callq	_inb
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r13,4)
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	%eax, %edi
	callq	_DEB
	incq	%r13
	cmpq	-48(%rbp), %r13                 ## 8-byte Folded Reload
	movq	_PNP_STATUS@GOTPCREL(%rip), %rax
	jne	LBB0_2
LBB0_7:
	movl	$1, %eax
	jmp	LBB0_8
LBB0_5:
	leaq	L_str(%rip), %rdi
	callq	_puts
	xorl	%eax, %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__PNP_ADDRESS,4,2               ## @_PNP_ADDRESS
	.comm	_PNP_STATUS,4,2                 ## @PNP_STATUS
	.comm	_rd_port,4,2                    ## @rd_port
	.comm	_PNP_RESOURCE_DATA,4,2          ## @PNP_RESOURCE_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"--- get_resource_info: got 0x%02x\n"

L_str:                                  ## @str
	.asciz	"PnP device failed to report resource data"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_resource_info              ; -- Begin function get_resource_info
	.p2align	2
_get_resource_info:                     ; @get_resource_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cmp	w1, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x19, x0
	mov	x21, #0
	mov	w22, w1
Lloh0:
	adrp	x23, __PNP_ADDRESS@GOTPAGE
Lloh1:
	ldr	x23, [x23, __PNP_ADDRESS@GOTPAGEOFF]
Lloh2:
	adrp	x24, _PNP_STATUS@GOTPAGE
Lloh3:
	ldr	x24, [x24, _PNP_STATUS@GOTPAGEOFF]
Lloh4:
	adrp	x25, _rd_port@GOTPAGE
Lloh5:
	ldr	x25, [x25, _rd_port@GOTPAGEOFF]
Lloh6:
	adrp	x26, _PNP_RESOURCE_DATA@GOTPAGE
Lloh7:
	ldr	x26, [x26, _PNP_RESOURCE_DATA@GOTPAGEOFF]
Lloh8:
	adrp	x20, l_.str.1@PAGE
Lloh9:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	ldr	w0, [x23]
	ldr	w1, [x24]
	bl	_outb
	mov	w27, #100
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x25]
	mov	w0, #3
	bfi	w0, w8, #2, #30
	bl	_inb
	tbnz	w0, #0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	mov	w0, #1
	bl	_DELAY
	subs	w27, w27, #1
	b.ne	LBB0_3
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x23]
	ldr	w1, [x26]
	bl	_outb
	ldr	w8, [x25]
	mov	w0, #3
	bfi	w0, w8, #2, #30
	bl	_inb
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x19, x21, lsl #2]
	str	x0, [sp]
	mov	x0, x20
	bl	_printf
	bl	_DEB
	add	x21, x21, #1
	cmp	x21, x22
	b.ne	LBB0_2
LBB0_6:
	mov	w0, #1
	b	LBB0_8
LBB0_7:
Lloh10:
	adrp	x0, l_str@PAGE
Lloh11:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	__PNP_ADDRESS,4,2               ; @_PNP_ADDRESS
	.comm	_PNP_STATUS,4,2                 ; @PNP_STATUS
	.comm	_rd_port,4,2                    ; @rd_port
	.comm	_PNP_RESOURCE_DATA,4,2          ; @PNP_RESOURCE_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"--- get_resource_info: got 0x%02x\n"

l_str:                                  ; @str
	.asciz	"PnP device failed to report resource data"

.subsections_via_symbols
