	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macio_activate_resource
_macio_activate_resource:               ## @macio_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movl	%edi, %r13d
	callq	_device_get_softc
	movq	%rax, %r14
	movq	_SYS_RES_IRQ@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_1
## %bb.6:
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	%r12d, %edx
	movq	%r15, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bus_activate_resource          ## TAILCALL
LBB0_1:
	movq	_SYS_RES_MEMORY@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_SYS_RES_IOPORT@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_5
LBB0_3:
	movq	%r15, %rdi
	callq	_rman_get_start
	movq	%rax, %rbx
	addq	(%r14), %rbx
	movq	%r15, %rdi
	callq	_rman_get_size
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_pmap_mapdev
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_rman_set_virtual
	movq	_bs_le_tag@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_rman_set_bustag
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_rman_set_bushandle
LBB0_5:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rman_activate_resource         ## TAILCALL
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_bs_le_tag,4,2                  ## @bs_le_tag
	.no_dead_strip	_macio_activate_resource
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macio_activate_resource
_macio_activate_resource:               ; @macio_activate_resource
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x4
	mov	x22, x3
	mov	x21, x2
	mov	x23, x0
	bl	_device_get_softc
Lloh0:
	adrp	x8, _SYS_RES_IRQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SYS_RES_IRQ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x22
	mov	x3, x19
	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
	ldp	x24, x23, [sp], #64             ; 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, w21
	ccmp	w9, w21, #4, ne
	b.ne	LBB0_5
; %bb.3:
	mov	x20, x0
	mov	x0, x19
	bl	_rman_get_start
	ldr	x8, [x20]
	add	x20, x8, x0
	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_6
; %bb.4:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_rman_set_virtual
Lloh9:
	adrp	x1, _bs_le_tag@GOTPAGE
Lloh10:
	ldr	x1, [x1, _bs_le_tag@GOTPAGEOFF]
	mov	x0, x19
	bl	_rman_set_bustag
	mov	x0, x19
	mov	x1, x20
	bl	_rman_set_bushandle
LBB0_5:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_rman_activate_resource
LBB0_6:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.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	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_bs_le_tag,4,2                  ; @bs_le_tag
	.no_dead_strip	_macio_activate_resource
.subsections_via_symbols
