	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isapnp_get_resource_info
_isapnp_get_resource_info:              ## @isapnp_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
	testl	%esi, %esi
	jle	LBB0_9
## %bb.1:
	movl	%esi, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	__PNP_ADDRESS@GOTPCREL(%rip), %rbx
	movq	_STATUS@GOTPCREL(%rip), %rax
	movq	_isapnp_readport@GOTPCREL(%rip), %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
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, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %edi
	callq	_inb
	testb	$1, %al
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	$1, %edi
	callq	_delay
	decl	%r14d
	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	_RESOURCE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_outb
	movl	(%r13), %edi
	callq	_inb
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, (%rdi,%r15,4)
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	cmpq	-56(%rbp), %r15                 ## 8-byte Folded Reload
	movq	_STATUS@GOTPCREL(%rip), %rax
	jne	LBB0_2
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_5:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	$1, %eax
LBB0_10:
	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	_STATUS,4,2                     ## @STATUS
	.comm	_isapnp_readport,4,2            ## @isapnp_readport
	.comm	_RESOURCE_DATA,4,2              ## @RESOURCE_DATA
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"PnP device failed to report resource data"

	.no_dead_strip	_isapnp_get_resource_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isapnp_get_resource_info
_isapnp_get_resource_info:              ; @isapnp_get_resource_info
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cmp	w1, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x19, x0
	mov	x20, #0
Lloh0:
	adrp	x21, __PNP_ADDRESS@GOTPAGE
Lloh1:
	ldr	x21, [x21, __PNP_ADDRESS@GOTPAGEOFF]
Lloh2:
	adrp	x22, _STATUS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _STATUS@GOTPAGEOFF]
Lloh4:
	adrp	x23, _isapnp_readport@GOTPAGE
Lloh5:
	ldr	x23, [x23, _isapnp_readport@GOTPAGEOFF]
	mov	w24, w1
Lloh6:
	adrp	x25, _RESOURCE_DATA@GOTPAGE
Lloh7:
	ldr	x25, [x25, _RESOURCE_DATA@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	ldr	w0, [x21]
	ldr	w1, [x22]
	bl	_outb
	mov	w26, #100
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x23]
	bl	_inb
	tbnz	w0, #0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	mov	w0, #1
	bl	_delay
	subs	w26, w26, #1
	b.ne	LBB0_3
	b	LBB0_9
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x21]
	ldr	w1, [x25]
	bl	_outb
	ldr	w0, [x23]
	bl	_inb
	cbz	x19, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	str	w0, [x19, x20, lsl #2]
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	cmp	x20, x24
	b.ne	LBB0_2
LBB0_8:
	mov	w0, #0
	b	LBB0_10
LBB0_9:
Lloh8:
	adrp	x0, l_str@PAGE
Lloh9:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #1
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	__PNP_ADDRESS,4,2               ; @_PNP_ADDRESS
	.comm	_STATUS,4,2                     ; @STATUS
	.comm	_isapnp_readport,4,2            ; @isapnp_readport
	.comm	_RESOURCE_DATA,4,2              ; @RESOURCE_DATA
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"PnP device failed to report resource data"

	.no_dead_strip	_isapnp_get_resource_info
.subsections_via_symbols
