	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function claim_region
_claim_region:                          ## @claim_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%esi, %edi
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_IORESOURCE_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%ecx, %eax
	movl	%edx, %esi
	movl	%eax, %edx
	movq	%r8, %rcx
	callq	_pcmcia_make_resource
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	testl	%r14d, %r15d
	jne	LBB0_2
## %bb.3:
	movq	_ioport_resource@GOTPCREL(%rip), %rdi
	jmp	LBB0_4
LBB0_2:
	movq	_iomem_resource@GOTPCREL(%rip), %rdi
LBB0_4:
	movq	%rbx, %rsi
	callq	_request_resource
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_iomem_resource,4,2             ## @iomem_resource
	.comm	_ioport_resource,4,2            ## @ioport_resource
	.comm	_IORESOURCE_BUSY,4,2            ## @IORESOURCE_BUSY
	.no_dead_strip	_claim_region
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function claim_region
_claim_region:                          ; @claim_region
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x3
	mov	x8, x2
	mov	x0, x1
Lloh0:
	adrp	x9, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x9]
Lloh3:
	adrp	x9, _IORESOURCE_BUSY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IORESOURCE_BUSY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w2, w9, w3
	mov	x1, x8
	mov	x3, x4
	bl	_pcmcia_make_resource
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _iomem_resource@GOTPAGE
Lloh7:
	ldr	x8, [x8, _iomem_resource@GOTPAGEOFF]
Lloh8:
	adrp	x9, _ioport_resource@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ioport_resource@GOTPAGEOFF]
	tst	w21, w20
	csel	x0, x9, x8, eq
	mov	x1, x19
	bl	_request_resource
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_iomem_resource,4,2             ; @iomem_resource
	.comm	_ioport_resource,4,2            ; @ioport_resource
	.comm	_IORESOURCE_BUSY,4,2            ; @IORESOURCE_BUSY
	.no_dead_strip	_claim_region
.subsections_via_symbols
