	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pnpbios_disable_resources
_pnpbios_disable_resources:             ## @pnpbios_disable_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	4(%rdi), %eax
	movl	%eax, -28(%rbp)
	movq	_PNPBIOS_NO_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
LBB0_2:
	movq	_EPERM@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	callq	_pnpbios_is_dynamic
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movq	_node_info@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	movq	_PNPMODE_DYNAMIC@GOTPCREL(%rip), %r15
	movsbl	(%r15), %esi
	leaq	-28(%rbp), %rdi
	movq	%rax, %rdx
	callq	_pnp_bios_get_dev_node
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_kfree
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_8:
	movq	%r14, %rdi
	callq	_pnpbios_zero_data_stream
	movl	4(%rbx), %edi
	movsbl	(%r15), %esi
	movq	%r14, %rdx
	callq	_pnp_bios_set_dev_node
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_kfree
	testl	%ebx, %ebx
	movl	$-1, %eax
	cmovlel	%ebx, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_PNPBIOS_NO_DISABLE,4,2         ## @PNPBIOS_NO_DISABLE
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_node_info,4,2                  ## @node_info
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PNPMODE_DYNAMIC,8,3            ## @PNPMODE_DYNAMIC
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_pnpbios_disable_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pnpbios_disable_resources
_pnpbios_disable_resources:             ; @pnpbios_disable_resources
	.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
	ldp	w9, w8, [x0]
	str	w8, [sp, #12]
Lloh0:
	adrp	x8, _PNPBIOS_NO_DISABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PNPBIOS_NO_DISABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_4
LBB0_1:
Lloh3:
	adrp	x8, _EPERM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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_4:
	mov	x19, x0
	bl	_pnpbios_is_dynamic
	cbz	w0, LBB0_1
; %bb.5:
Lloh5:
	adrp	x8, _node_info@GOTPAGE
Lloh6:
	ldr	x8, [x8, _node_info@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.6:
	mov	x20, x0
Lloh11:
	adrp	x21, _PNPMODE_DYNAMIC@GOTPAGE
Lloh12:
	ldr	x21, [x21, _PNPMODE_DYNAMIC@GOTPAGEOFF]
	ldrsb	w1, [x21]
	add	x0, sp, #12
	mov	x2, x20
	bl	_pnp_bios_get_dev_node
	cbz	x0, LBB0_9
; %bb.7:
	mov	x0, x20
	bl	_kfree
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_2
LBB0_8:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_9:
	mov	x0, x20
	bl	_pnpbios_zero_data_stream
	ldr	w0, [x19, #4]
	ldrsb	w1, [x21]
	mov	x2, x20
	bl	_pnp_bios_set_dev_node
	mov	x19, x0
	mov	x0, x20
	bl	_kfree
	cmp	w19, #0
	csinv	w0, w19, wzr, le
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PNPBIOS_NO_DISABLE,4,2         ; @PNPBIOS_NO_DISABLE
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_node_info,4,2                  ; @node_info
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PNPMODE_DYNAMIC,8,3            ; @PNPMODE_DYNAMIC
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_pnpbios_disable_resources
.subsections_via_symbols
