	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isapnp_scan_resdata
_isapnp_scan_resdata:                   ## @isapnp_scan_resdata
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -128(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$-1000, %r14d                   ## imm = 0xFC18
	leaq	-120(%rbp), %r15
	leaq	-112(%rbp), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%edi, %edi
	movl	%ebx, %esi
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	callq	_isapnp_get_resource_info
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	incl	%r14d
	je	LBB0_20
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %r13d
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_isapnp_get_resource_info
	testq	%rax, %rax
	jne	LBB0_20
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-120(%rbp), %rdi
	callq	_PNP_RES_TYPE
	testq	%rax, %rax
	je	LBB0_3
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_isapnp_get_resource_info
	testq	%rax, %rax
	jne	LBB0_20
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-104(%rbp), %rbx
	shlq	$8, %rbx
	addq	-112(%rbp), %rbx
	movq	-120(%rbp), %rdi
	callq	_PNP_LRES_NUM
	cmpl	$128, %eax
	jne	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %r13
	movq	%r12, %r15
	leaq	1(%rbx), %rdi
	callq	_malloc
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_isapnp_get_resource_info
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	$0, (%r12,%rbx,8)
	movq	-128(%rbp), %rax                ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-120(%rbp), %rdi
	callq	_PNP_SRES_NUM
	cmpl	$129, %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$130, %eax
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-120(%rbp), %rdi
	callq	_PNP_SRES_LEN
	xorl	%edi, %edi
	movl	%eax, %esi
	jmp	LBB0_18
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, (%rax)
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %r12
	movq	%r13, %r15
	movl	$1, %r13d
	incl	%r14d
	jne	LBB0_1
	jmp	LBB0_20
LBB0_4:
	xorl	%r13d, %r13d
	jmp	LBB0_20
LBB0_6:
	movq	-120(%rbp), %rdi
	callq	_PNP_SRES_LEN
	leaq	-112(%rbp), %rdi
	movl	%eax, %esi
	callq	_isapnp_get_resource_info
	testq	%rax, %rax
	jne	LBB0_20
## %bb.7:
	leaq	-112(%rbp), %rdi
	callq	_pnp_eisaformat
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movl	%eax, %esi
	callq	_pnp_addident
	xorl	%r13d, %r13d
	jmp	LBB0_20
LBB0_12:
	movq	%r12, %rdi
	callq	_free
	movl	$1, %r13d
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	movl	%r13d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_isapnp_scan_resdata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isapnp_scan_resdata
_isapnp_scan_resdata:                   ; @isapnp_scan_resdata
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	mov	w22, #-1000
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, #0
	mov	x1, x20
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_isapnp_get_resource_info
	cbnz	x0, LBB0_19
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	adds	w22, w22, #1
	b.hs	LBB0_19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	w20, #1
	mov	x0, sp
	mov	w1, #1
	bl	_isapnp_get_resource_info
	cbnz	x0, LBB0_20
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp]
	bl	_PNP_RES_TYPE
	cbz	x0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #8
	mov	w1, #2
	bl	_isapnp_get_resource_info
	cbnz	x0, LBB0_19
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x9, x8, [sp, #8]
	add	x20, x9, x8, lsl #8
	ldr	x0, [sp]
	bl	_PNP_LRES_NUM
	cmp	w0, #128
	b.ne	LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x20, #1
	bl	_malloc
	mov	x21, x0
	mov	x1, x20
	bl	_isapnp_get_resource_info
	cbnz	x0, LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [x21, x20, lsl #3]
	ldr	x8, [x19]
	cbz	x8, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_free
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp]
	bl	_PNP_SRES_NUM
	cmp	w0, #129
	b.eq	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #130
	b.eq	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp]
	bl	_PNP_SRES_LEN
	mov	x1, x0
	mov	x0, #0
	b	LBB0_2
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x21, [x19]
	b	LBB0_3
LBB0_15:
	mov	w20, #0
	b	LBB0_20
LBB0_16:
	ldr	x0, [sp]
	bl	_PNP_SRES_LEN
	mov	x1, x0
	add	x0, sp, #8
	bl	_isapnp_get_resource_info
	cbnz	x0, LBB0_19
; %bb.17:
	add	x0, sp, #8
	bl	_pnp_eisaformat
	mov	x1, x0
	mov	x0, x19
	bl	_pnp_addident
	mov	w20, #0
	b	LBB0_20
LBB0_18:
	mov	x0, x21
	bl	_free
LBB0_19:
	mov	w20, #1
LBB0_20:
	ldur	x8, [x29, #-40]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	mov	x0, x20
	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
	add	sp, sp, #128
	ret
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_isapnp_scan_resdata
.subsections_via_symbols
