	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isa_alloc_resource             ## -- Begin function isa_alloc_resource
	.p2align	4, 0x90
_isa_alloc_resource:                    ## @isa_alloc_resource
	.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
	movl	%r9d, %r14d
	movl	%r8d, %ebx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movl	%esi, %r15d
	movl	%edi, %r13d
	movl	%esi, %edi
	callq	_DEVTOISA
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movl	%r13d, %ebx
	movq	%rax, %r13
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, %esi
	callq	_RMAN_IS_DEFAULT_RANGE
	movq	%rax, %r14
	movl	%r15d, %edi
	callq	_device_get_parent
	cmpl	%ebx, %eax
	jne	LBB0_13
## %bb.1:
	testq	%r14, %r14
	jne	LBB0_13
## %bb.2:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_resource_list_find
	testq	%rax, %rax
	jne	LBB0_13
## %bb.3:
	cmpl	$128, %r12d
	je	LBB0_8
## %bb.4:
	cmpl	$129, %r12d
	je	LBB0_7
## %bb.5:
	xorl	%eax, %eax
	cmpl	$130, %r12d
	jne	LBB0_10
## %bb.6:
	movq	_ISA_PNP_NPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_ISA_PNP_NMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_ISA_PNP_NIRQ@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
LBB0_10:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	testl	%edx, %edx
	js	LBB0_14
## %bb.11:
	cmpl	%eax, %edx
	jge	LBB0_14
## %bb.12:
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	16(%rbp), %r9d
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_resource_list_add
LBB0_13:
	movl	24(%rbp), %eax
	subq	$8, %rsp
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rax
	movl	16(%rbp), %eax
	pushq	%rax
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_resource_list_alloc
	addq	$56, %rsp
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	xorl	%eax, %eax
	addq	$24, %rsp
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_ISA_PNP_NPORT,4,2              ## @ISA_PNP_NPORT
	.comm	_ISA_PNP_NIRQ,4,2               ## @ISA_PNP_NIRQ
	.comm	_ISA_PNP_NMEM,4,2               ## @ISA_PNP_NMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isa_alloc_resource             ; -- Begin function isa_alloc_resource
	.p2align	2
_isa_alloc_resource:                    ; @isa_alloc_resource
	.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
	mov	x23, x7
	mov	x19, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x24, x2
	mov	x25, x1
	mov	x26, x0
	mov	x0, x1
	bl	_DEVTOISA
	mov	x27, x0
	mov	x0, x21
	mov	x1, x20
	bl	_RMAN_IS_DEFAULT_RANGE
	mov	x28, x0
	mov	x0, x25
	bl	_device_get_parent
	cmp	w0, w26
	b.ne	LBB0_13
; %bb.1:
	cbnz	x28, LBB0_13
; %bb.2:
	ldr	w2, [x22]
	mov	x0, x27
	mov	x1, x24
	bl	_resource_list_find
	cbnz	x0, LBB0_13
; %bb.3:
	cmp	w24, #128
	b.eq	LBB0_7
; %bb.4:
	cmp	w24, #129
	b.eq	LBB0_8
; %bb.5:
	cmp	w24, #130
	b.ne	LBB0_10
; %bb.6:
Lloh0:
	adrp	x8, _ISA_PNP_NPORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ISA_PNP_NPORT@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh2:
	adrp	x8, _ISA_PNP_NMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ISA_PNP_NMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh4:
	adrp	x8, _ISA_PNP_NIRQ@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ISA_PNP_NIRQ@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	ldr	w2, [x22]
	tbz	w2, #31, LBB0_11
	b	LBB0_15
LBB0_10:
	mov	w8, #0
	ldr	w2, [x22]
	tbnz	w2, #31, LBB0_15
LBB0_11:
	cmp	w2, w8
	b.ge	LBB0_15
; %bb.12:
	mov	x0, x27
	mov	x1, x24
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	bl	_resource_list_add
LBB0_13:
	str	w23, [sp]
	mov	x0, x27
	mov	x1, x26
	mov	x2, x25
	mov	x3, x24
	mov	x4, x22
	mov	x5, x21
	mov	x6, x20
	mov	x7, x19
	bl	_resource_list_alloc
LBB0_14:
	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
LBB0_15:
	mov	x0, #0
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ISA_PNP_NPORT,4,2              ; @ISA_PNP_NPORT
	.comm	_ISA_PNP_NIRQ,4,2               ; @ISA_PNP_NIRQ
	.comm	_ISA_PNP_NMEM,4,2               ; @ISA_PNP_NMEM
.subsections_via_symbols
