	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function biospnp_init
_biospnp_init:                          ## @biospnp_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_pnp_Icheck@GOTPCREL(%rip), %r14
	movq	$0, (%r14)
	movl	$983040, %edi                   ## imm = 0xF0000
	callq	_PTOV
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1048575, %edi                  ## imm = 0xFFFFF
	callq	_PTOV
	cmpq	%rax, %rbx
	jae	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$1349406756, (%rbx)             ## imm = 0x506E5024
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	$16, %rbx
	jmp	LBB0_1
LBB0_5:
	movq	(%r14), %rbx
	jmp	LBB0_6
LBB0_3:
	movq	%rbx, (%r14)
LBB0_6:
	movl	$1, %r14d
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.7:
	movq	_pnp_NumNodes@GOTPCREL(%rip), %rdi
	callq	_vsegofs
	movl	%eax, %ebx
	movq	_pnp_NodeSize@GOTPCREL(%rip), %rdi
	callq	_vsegofs
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_biospnp_f00
	cmpl	$128, %eax
	jne	LBB0_15
## %bb.8:
	leaq	-32(%rbp), %rdi
	callq	_vsegofs
	movl	%eax, %edi
	callq	_biospnp_f40
	xorl	%r14d, %r14d
	cmpl	$129, %eax
	je	LBB0_13
## %bb.9:
	cmpl	$128, %eax
	jne	LBB0_15
## %bb.10:
	cmpl	$1, -32(%rbp)
	jne	LBB0_15
## %bb.11:
	cmpl	$0, -24(%rbp)
	jle	LBB0_15
## %bb.12:
	movl	-28(%rbp), %eax
	jmp	LBB0_14
LBB0_13:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	$-1, %eax
LBB0_14:
	movq	_isapnp_readport@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_15:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pnp_Icheck,8,3                 ## @pnp_Icheck
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"$PnP"

	.comm	_pnp_NumNodes,12,2              ## @pnp_NumNodes
	.comm	_pnp_NodeSize,12,2              ## @pnp_NodeSize
	.comm	_isapnp_readport,4,2            ## @isapnp_readport
L_str:                                  ## @str
	.asciz	"PnP BIOS claims no ISA bus"

	.no_dead_strip	_biospnp_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function biospnp_init
_biospnp_init:                          ; @biospnp_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x20, _pnp_Icheck@GOTPAGE
Lloh1:
	ldr	x20, [x20, _pnp_Icheck@GOTPAGEOFF]
	str	xzr, [x20]
	mov	w0, #983040
	bl	_PTOV
	mov	x19, x0
	mov	w0, #1048575
	bl	_PTOV
	cmp	x19, x0
	b.hs	LBB0_4
; %bb.1:
	mov	w21, #20516
	movk	w21, #20590, lsl #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	cmp	w8, w21
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x19, x19, #16
	mov	w0, #1048575
	bl	_PTOV
	cmp	x19, x0
	b.lo	LBB0_2
LBB0_4:
	ldr	x19, [x20]
	cbnz	x19, LBB0_6
	b	LBB0_12
LBB0_5:
	str	x19, [x20]
	cbz	x19, LBB0_12
LBB0_6:
Lloh2:
	adrp	x0, _pnp_NumNodes@GOTPAGE
Lloh3:
	ldr	x0, [x0, _pnp_NumNodes@GOTPAGEOFF]
	bl	_vsegofs
	mov	x19, x0
Lloh4:
	adrp	x0, _pnp_NodeSize@GOTPAGE
Lloh5:
	ldr	x0, [x0, _pnp_NodeSize@GOTPAGEOFF]
	bl	_vsegofs
	mov	x1, x0
	mov	x0, x19
	bl	_biospnp_f00
	cmp	w0, #128
	b.ne	LBB0_12
; %bb.7:
	mov	x0, sp
	bl	_vsegofs
	bl	_biospnp_f40
	cmp	w0, #129
	b.eq	LBB0_14
; %bb.8:
	cmp	w0, #128
	b.ne	LBB0_16
; %bb.9:
	mov	w0, #0
	ldr	w8, [sp]
	cmp	w8, #1
	b.ne	LBB0_13
; %bb.10:
	ldr	w8, [sp, #8]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.11:
	ldr	w8, [sp, #4]
	b	LBB0_15
LBB0_12:
	mov	w0, #1
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_14:
Lloh6:
	adrp	x0, l_str@PAGE
Lloh7:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w8, #-1
LBB0_15:
	mov	w0, #0
Lloh8:
	adrp	x9, _isapnp_readport@GOTPAGE
Lloh9:
	ldr	x9, [x9, _isapnp_readport@GOTPAGEOFF]
Lloh10:
	str	w8, [x9]
	b	LBB0_13
LBB0_16:
	mov	w0, #0
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_pnp_Icheck,8,3                 ; @pnp_Icheck
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"$PnP"

	.comm	_pnp_NumNodes,12,2              ; @pnp_NumNodes
	.comm	_pnp_NodeSize,12,2              ; @pnp_NodeSize
	.comm	_isapnp_readport,4,2            ; @isapnp_readport
l_str:                                  ; @str
	.asciz	"PnP BIOS claims no ISA bus"

	.no_dead_strip	_biospnp_init
.subsections_via_symbols
