	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __nonstatic_find_io_region
___nonstatic_find_io_region:            ## @__nonstatic_find_io_region
	.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
	movq	%rcx, %rbx
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	_IORESOURCE_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	addq	$16, %rdi
	callq	_dev_name
	xorl	%edi, %edi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_pcmcia_make_resource
	movq	%rax, %r12
	movq	8(%r13), %rax
	decq	%rbx
	movq	%rbx, -64(%rbp)
	andq	%r14, %rbx
	movq	%rbx, -56(%rbp)
	movq	%rax, -48(%rbp)
	movq	_pcmcia_align@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-64(%rbp), %rbx
	movq	_ioport_resource@GOTPCREL(%rip), %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movq	%r14, %rcx
	movq	$-1, %r8
	movl	$1, %r9d
	pushq	%rbx
	pushq	%rax
	callq	_allocate_resource
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_kfree
	xorl	%r12d, %r12d
LBB0_2:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_IO,4,2              ## @IORESOURCE_IO
	.comm	_ioport_resource,4,2            ## @ioport_resource
	.comm	_pcmcia_align,4,2               ## @pcmcia_align
	.no_dead_strip	___nonstatic_find_io_region
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __nonstatic_find_io_region
___nonstatic_find_io_region:            ; @__nonstatic_find_io_region
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _IORESOURCE_IO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_IO@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	add	x0, x0, #16
	bl	_dev_name
	mov	x3, x0
	mov	w0, #0
	mov	x1, x21
	mov	x2, x19
	bl	_pcmcia_make_resource
	mov	x19, x0
	ldr	x8, [x23, #8]
	sub	x9, x20, #1
	and	x10, x9, x22
	stp	x9, x10, [sp, #8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _pcmcia_align@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pcmcia_align@GOTPAGEOFF]
Lloh5:
	ldr	w6, [x8]
Lloh6:
	adrp	x0, _ioport_resource@GOTPAGE
Lloh7:
	ldr	x0, [x0, _ioport_resource@GOTPAGEOFF]
	add	x7, sp, #8
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	mov	x4, #-1
	mov	w5, #1
	bl	_allocate_resource
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_IO,4,2              ; @IORESOURCE_IO
	.comm	_ioport_resource,4,2            ; @ioport_resource
	.comm	_pcmcia_align,4,2               ; @pcmcia_align
	.no_dead_strip	___nonstatic_find_io_region
.subsections_via_symbols
