	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nonstatic_find_mem_region
_nonstatic_find_mem_region:             ## @nonstatic_find_mem_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	24(%r8), %rdi
	callq	_dev_name
	xorl	%edi, %edi
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_pcmcia_make_resource
	movq	%rax, %r14
	xorl	%eax, %eax
	movq	16(%r12), %r15
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_2
## %bb.1:
	movq	_SS_CAP_PAGE_REGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	setne	%al
LBB0_2:
	decq	%rbx
	movq	%rbx, -88(%rbp)
	andq	%r13, %rbx
	movq	%rbx, -80(%rbp)
	xorl	%r12d, %r12d
	cmpq	$1048576, %r13                  ## imm = 0x100000
	cmovbq	%r13, %r12
	leaq	4(%r15), %rdx
	addq	$1048576, %r13                  ## imm = 0x100000
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testb	%al, %al
	cmoveq	%r12, %r13
	movq	$-1, %rax
	movl	$1048576, %ebx                  ## imm = 0x100000
	cmovneq	%rax, %rbx
	movq	_pcmcia_align@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-88(%rbp), %r10
	movq	_iomem_resource@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	movq	%rbx, %r8
	movl	$1, %r9d
	pushq	%r10
	pushq	%rax
	callq	_allocate_resource
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_9
## %bb.3:
	movq	%r15, -72(%rbp)
	movq	_pcmcia_align@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_iomem_resource@GOTPCREL(%rip), %rdi
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	movq	%rbx, %r8
	movl	$1, %r9d
	leaq	-88(%rbp), %r14
	pushq	%r14
	pushq	%rax
	callq	_allocate_resource
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	movq	%r15, -72(%rbp)
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_8
## %bb.5:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -72(%rbp)
	movq	_pcmcia_align@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_iomem_resource@GOTPCREL(%rip), %rdi
	movl	$1048576, %r8d                  ## imm = 0x100000
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r12, %rcx
	movl	$1, %r9d
	pushq	%r14
	pushq	%rax
	callq	_allocate_resource
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_12
## %bb.6:
	movq	%r15, -72(%rbp)
	movq	_pcmcia_align@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_iomem_resource@GOTPCREL(%rip), %rdi
	movl	$1048576, %r8d                  ## imm = 0x100000
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	movl	$1, %r9d
	pushq	%r14
	pushq	%rax
	callq	_allocate_resource
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:
	movq	%r15, -72(%rbp)
LBB0_8:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_9:
	movq	%r14, %rax
	jmp	LBB0_13
LBB0_10:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_12:
	movq	%rbx, %rax
LBB0_13:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_SS_CAP_PAGE_REGS,4,2           ## @SS_CAP_PAGE_REGS
	.comm	_iomem_resource,4,2             ## @iomem_resource
	.comm	_pcmcia_align,4,2               ## @pcmcia_align
	.no_dead_strip	_nonstatic_find_mem_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_mem_region
_nonstatic_find_mem_region:             ; @nonstatic_find_mem_region
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x4
	mov	x24, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	add	x0, x4, #24
Lloh0:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	bl	_dev_name
	mov	x3, x0
	mov	w0, #0
	mov	x1, x20
	mov	x2, x19
	bl	_pcmcia_make_resource
	mov	x19, x0
	mov	w26, #0
	ldr	x25, [x23, #16]
	cbnz	w24, LBB0_2
; %bb.1:
	ldr	w8, [x23]
Lloh3:
	adrp	x9, _SS_CAP_PAGE_REGS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SS_CAP_PAGE_REGS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w26, ne
LBB0_2:
	sub	x8, x21, #1
	and	x9, x8, x22
	stp	x8, x9, [sp, #8]
	add	x27, x25, #4
	cmp	x22, #256, lsl #12              ; =1048576
	csel	x21, x22, xzr, lo
	add	x8, x22, #256, lsl #12          ; =1048576
	str	x27, [sp, #24]
	cmp	w26, #0
	csel	x22, x8, x21, ne
	mov	w8, #1048576
	csinv	x23, x8, xzr, eq
Lloh6:
	adrp	x24, _pcmcia_align@GOTPAGE
Lloh7:
	ldr	x24, [x24, _pcmcia_align@GOTPAGEOFF]
	ldr	w6, [x24]
Lloh8:
	adrp	x0, _iomem_resource@GOTPAGE
Lloh9:
	ldr	x0, [x0, _iomem_resource@GOTPAGEOFF]
	add	x7, sp, #8
	mov	x1, x19
	mov	x2, x20
	mov	x3, x22
	mov	x4, x23
	mov	w5, #1
	bl	_allocate_resource
	cbz	w0, LBB0_9
; %bb.3:
	str	x25, [sp, #24]
	ldr	w6, [x24]
Lloh10:
	adrp	x0, _iomem_resource@GOTPAGE
Lloh11:
	ldr	x0, [x0, _iomem_resource@GOTPAGEOFF]
	add	x7, sp, #8
	mov	x1, x19
	mov	x2, x20
	mov	x3, x22
	mov	x4, x23
	mov	w5, #1
	bl	_allocate_resource
	cbz	w0, LBB0_9
; %bb.4:
	str	x25, [sp, #24]
	tbz	w26, #0, LBB0_8
; %bb.5:
	str	x27, [sp, #24]
	ldr	w6, [x24]
Lloh12:
	adrp	x0, _iomem_resource@GOTPAGE
Lloh13:
	ldr	x0, [x0, _iomem_resource@GOTPAGEOFF]
	add	x7, sp, #8
	mov	x1, x19
	mov	x2, x20
	mov	x3, x21
	mov	w4, #1048576
	mov	w5, #1
	bl	_allocate_resource
	cbz	w0, LBB0_9
; %bb.6:
	str	x25, [sp, #24]
	ldr	w6, [x24]
Lloh14:
	adrp	x0, _iomem_resource@GOTPAGE
Lloh15:
	ldr	x0, [x0, _iomem_resource@GOTPAGEOFF]
	add	x7, sp, #8
	mov	x1, x19
	mov	x2, x20
	mov	x3, x21
	mov	w4, #1048576
	mov	w5, #1
	bl	_allocate_resource
	cbz	w0, LBB0_9
; %bb.7:
	str	x25, [sp, #24]
LBB0_8:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_SS_CAP_PAGE_REGS,4,2           ; @SS_CAP_PAGE_REGS
	.comm	_iomem_resource,4,2             ; @iomem_resource
	.comm	_pcmcia_align,4,2               ; @pcmcia_align
	.no_dead_strip	_nonstatic_find_mem_region
.subsections_via_symbols
