	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apb_alloc_resource
_apb_alloc_resource:                    ## @apb_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, %ebx
	movl	%r8d, %r14d
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	%edi, %r12d
	callq	_device_get_softc
	movq	%rax, %r13
	movl	%r14d, %edi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	callq	_RMAN_IS_DEFAULT_RANGE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r14d
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_device_get_nameunit
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edi
	movl	%r14d, %edx
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_device_printf
LBB0_14:
	movl	%r15d, %edx
LBB0_15:
	movl	%r12d, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%r14d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bus_generic_alloc_resource     ## TAILCALL
LBB0_2:
	cmpl	$128, %r15d
	movl	%r15d, %edx
	je	LBB0_9
## %bb.3:
	cmpl	$129, %edx
	jne	LBB0_15
## %bb.4:
	movl	%edx, %r15d
	movl	8(%r13), %edi
	movq	_APB_IO_SCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_apb_checkrange
	testl	%eax, %eax
	je	LBB0_5
## %bb.7:
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movl	%r15d, %edx
	je	LBB0_15
## %bb.8:
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movl	%r14d, %r12d
	movl	(%r13), %r14d
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_device_get_nameunit
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_13
LBB0_9:
	movl	%edx, %r15d
	movl	4(%r13), %edi
	movq	_APB_MEM_SCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_apb_checkrange
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movl	%r15d, %edx
	je	LBB0_15
## %bb.12:
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movl	%r14d, %r12d
	movl	(%r13), %r14d
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_device_get_nameunit
	leaq	L_.str.4(%rip), %rsi
LBB0_13:
	movl	%r14d, %edi
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%r12d, %r14d
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	%eax, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_14
LBB0_5:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_device_get_nameunit
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_10:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_device_get_nameunit
	leaq	L_.str.3(%rip), %rsi
LBB0_6:
	movl	%r12d, %edi
	movl	%eax, %edx
	movl	%r14d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_device_printf
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't decode default resource id %d for %s, bypassing\n"

	.comm	_APB_IO_SCALE,4,2               ## @APB_IO_SCALE
L_.str.1:                               ## @.str.1
	.asciz	"device %s requested unsupported I/O range 0x%jx-0x%jx\n"

	.comm	_bootverbose,4,2                ## @bootverbose
L_.str.2:                               ## @.str.2
	.asciz	"device %s requested decoded I/O range 0x%jx-0x%jx\n"

	.comm	_APB_MEM_SCALE,4,2              ## @APB_MEM_SCALE
L_.str.3:                               ## @.str.3
	.asciz	"device %s requested unsupported memory range 0x%jx-0x%jx\n"

L_.str.4:                               ## @.str.4
	.asciz	"device %s requested decoded memory range 0x%jx-0x%jx\n"

	.no_dead_strip	_apb_alloc_resource
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apb_alloc_resource
_apb_alloc_resource:                    ; @apb_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	x22, x7
	mov	x23, x6
	mov	x20, x5
	mov	x19, x4
	mov	x25, x3
	mov	x26, x2
	mov	x24, x1
	mov	x21, x0
	bl	_device_get_softc
	mov	x27, x0
	mov	x0, x19
	mov	x1, x20
	bl	_RMAN_IS_DEFAULT_RANGE
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w27, [x25]
	mov	x0, x24
	bl	_device_get_nameunit
	mov	x3, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x27
LBB0_2:
	bl	_device_printf
LBB0_3:
	mov	x0, x21
	mov	x1, x24
	mov	x2, x26
	mov	x3, x25
	mov	x4, x19
	mov	x5, x20
	mov	x6, x23
	mov	x7, x22
	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
	b	_bus_generic_alloc_resource
LBB0_4:
	cmp	w26, #128
	b.eq	LBB0_9
; %bb.5:
	cmp	w26, #129
	b.ne	LBB0_3
; %bb.6:
	ldr	w0, [x27, #8]
Lloh2:
	adrp	x8, _APB_IO_SCALE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _APB_IO_SCALE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x2, x19
	mov	x3, x20
	bl	_apb_checkrange
	cbz	w0, LBB0_13
; %bb.7:
Lloh5:
	adrp	x8, _bootverbose@GOTPAGE
Lloh6:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.8:
	ldr	w27, [x27]
	mov	x0, x24
	bl	_device_get_nameunit
	mov	x2, x0
	mov	x8, x20
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_9:
	ldr	w0, [x27, #4]
Lloh10:
	adrp	x8, _APB_MEM_SCALE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _APB_MEM_SCALE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x2, x19
	mov	x3, x20
	bl	_apb_checkrange
	cbz	w0, LBB0_14
; %bb.10:
Lloh13:
	adrp	x8, _bootverbose@GOTPAGE
Lloh14:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.11:
	ldr	w27, [x27]
	mov	x0, x24
	bl	_device_get_nameunit
	mov	x2, x0
	mov	x8, x20
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_12:
	mov	x0, x27
	mov	x3, x19
	b	LBB0_2
LBB0_13:
	mov	x0, x24
	bl	_device_get_nameunit
	mov	x2, x0
	str	x20, [sp]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_14:
	mov	x0, x24
	bl	_device_get_nameunit
	mov	x2, x0
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	str	x20, [sp]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_15:
	mov	x0, x21
	mov	x3, x19
	bl	_device_printf
	mov	x0, #0
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't decode default resource id %d for %s, bypassing\n"

	.comm	_APB_IO_SCALE,4,2               ; @APB_IO_SCALE
l_.str.1:                               ; @.str.1
	.asciz	"device %s requested unsupported I/O range 0x%jx-0x%jx\n"

	.comm	_bootverbose,4,2                ; @bootverbose
l_.str.2:                               ; @.str.2
	.asciz	"device %s requested decoded I/O range 0x%jx-0x%jx\n"

	.comm	_APB_MEM_SCALE,4,2              ; @APB_MEM_SCALE
l_.str.3:                               ; @.str.3
	.asciz	"device %s requested unsupported memory range 0x%jx-0x%jx\n"

l_.str.4:                               ; @.str.4
	.asciz	"device %s requested decoded memory range 0x%jx-0x%jx\n"

	.no_dead_strip	_apb_alloc_resource
.subsections_via_symbols
