	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcmcia_setup_irq               ## -- Begin function pcmcia_setup_irq
	.p2align	4, 0x90
_pcmcia_setup_irq:                      ## @pcmcia_setup_irq
	.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
	xorl	%r14d, %r14d
	cmpq	$0, (%rdi)
	jne	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_4
LBB0_2:
	movq	%rax, (%rbx)
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pcmcia_setup_isa_irq
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pcmcia_setup_isa_irq
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, 8(%r15)
	jmp	LBB0_2
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcmcia_setup_irq               ; -- Begin function pcmcia_setup_irq
	.p2align	2
_pcmcia_setup_irq:                      ; @pcmcia_setup_irq
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_5
LBB0_2:
	mov	x19, x0
	ldr	x20, [x0, #8]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_6
; %bb.3:
	mov	w0, #0
LBB0_4:
	str	x8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	bl	_pcmcia_setup_isa_irq
	cbz	w0, LBB0_5
; %bb.7:
Lloh0:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pcmcia_setup_isa_irq
	cbz	w0, LBB0_5
; %bb.8:
	ldr	x8, [x20]
	cbz	x8, LBB0_10
; %bb.9:
	mov	w0, #0
	str	x8, [x20, #8]
	b	LBB0_4
LBB0_10:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
