	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unin_chip_activate_resource
_unin_chip_activate_resource:           ## @unin_chip_activate_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%r8, %rbx
	movq	_SYS_RES_IRQ@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_1
## %bb.8:
	movl	%edx, %esi
	movl	%ecx, %edx
	movq	%rbx, %rcx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_bus_activate_resource          ## TAILCALL
LBB0_1:
	movq	_SYS_RES_MEMORY@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_SYS_RES_IOPORT@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_7
LBB0_3:
	movq	%rbx, %rdi
	callq	_rman_get_start
	movq	%rax, %r14
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_rman_get_size
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_printf
LBB0_5:
	movq	%rbx, %rdi
	callq	_rman_get_size
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_pmap_mapdev
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_rman_set_virtual
	movq	_bs_be_tag@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_rman_set_bustag
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_rman_set_bushandle
LBB0_7:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_rman_activate_resource         ## TAILCALL
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYS_RES_IRQ,4,2                ## @SYS_RES_IRQ
	.comm	_SYS_RES_MEMORY,4,2             ## @SYS_RES_MEMORY
	.comm	_SYS_RES_IOPORT,4,2             ## @SYS_RES_IOPORT
	.comm	_bootverbose,8,3                ## @bootverbose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unin mapdev: start %zx, len %jd\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_bs_be_tag,4,2                  ## @bs_be_tag
	.no_dead_strip	_unin_chip_activate_resource
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unin_chip_activate_resource
_unin_chip_activate_resource:           ; @unin_chip_activate_resource
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x4
Lloh0:
	adrp	x8, _SYS_RES_IRQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SYS_RES_IRQ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_2
; %bb.1:
	mov	x1, x2
	mov	x2, x3
	mov	x3, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bus_activate_resource
LBB0_2:
Lloh3:
	adrp	x8, _SYS_RES_MEMORY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SYS_RES_MEMORY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _SYS_RES_IOPORT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SYS_RES_IOPORT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w2
	ccmp	w9, w2, #4, ne
	b.ne	LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_rman_get_start
	mov	x20, x0
Lloh9:
	adrp	x8, _bootverbose@GOTPAGE
Lloh10:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_rman_get_size
	mov	x2, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_printf
LBB0_5:
	mov	x0, x19
	bl	_rman_get_size
	mov	x1, x0
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_pmap_mapdev
	cbz	x0, LBB0_8
; %bb.6:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_rman_set_virtual
Lloh14:
	adrp	x1, _bs_be_tag@GOTPAGE
Lloh15:
	ldr	x1, [x1, _bs_be_tag@GOTPAGEOFF]
	mov	x0, x19
	bl	_rman_set_bustag
	mov	x0, x19
	mov	x1, x20
	bl	_rman_set_bushandle
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rman_activate_resource
LBB0_8:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_SYS_RES_IRQ,4,2                ; @SYS_RES_IRQ
	.comm	_SYS_RES_MEMORY,4,2             ; @SYS_RES_MEMORY
	.comm	_SYS_RES_IOPORT,4,2             ; @SYS_RES_IOPORT
	.comm	_bootverbose,8,3                ; @bootverbose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unin mapdev: start %zx, len %jd\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_bs_be_tag,4,2                  ; @bs_be_tag
	.no_dead_strip	_unin_chip_activate_resource
.subsections_via_symbols
