	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_setup_7220_interrupt
_qib_setup_7220_interrupt:              ## @qib_setup_7220_interrupt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movl	(%rax), %edi
	testl	%edi, %edi
	je	LBB0_5
## %bb.1:
	movq	_qib_7220intr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpq	$0, 8(%rbx)
	jne	LBB0_3
## %bb.2:
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_3:
	movq	_QIB_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	cmpq	$0, 8(%rbx)
	leaq	L_.str.3(%rip), %rcx
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rcx, %rdx
	movq	(%rbx), %rcx
	movl	(%rcx), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %r8d
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_qib_dev_err                    ## TAILCALL
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_qib_dev_err                    ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irq is 0, BIOS error?  Interrupts won't work\n"

	.comm	_qib_7220intr,4,2               ## @qib_7220intr
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_QIB_DRV_NAME,4,2               ## @QIB_DRV_NAME
L_.str.1:                               ## @.str.1
	.asciz	"Couldn't setup %s interrupt (irq=%d): %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"MSI"

L_.str.3:                               ## @.str.3
	.asciz	"INTx"

	.no_dead_strip	_qib_setup_7220_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_setup_7220_interrupt
_qib_setup_7220_interrupt:              ; @qib_setup_7220_interrupt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w0, [x8]
	cbz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _qib_7220intr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _qib_7220intr@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _IRQF_SHARED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IRQF_SHARED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w2, w9, wzr, eq
Lloh6:
	adrp	x8, _QIB_DRV_NAME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QIB_DRV_NAME@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x4, x19
	bl	_request_irq
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, l_.str.2@PAGE
Lloh10:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh11:
	adrp	x9, l_.str.3@PAGE
Lloh12:
	add	x9, x9, l_.str.3@PAGEOFF
	ldp	x11, x10, [x19]
	cmp	x10, #0
	csel	x8, x9, x8, eq
	ldr	w9, [x11]
	stp	x9, x0, [sp, #8]
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_qib_dev_err
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_qib_dev_err
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irq is 0, BIOS error?  Interrupts won't work\n"

	.comm	_qib_7220intr,4,2               ; @qib_7220intr
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_QIB_DRV_NAME,4,2               ; @QIB_DRV_NAME
l_.str.1:                               ; @.str.1
	.asciz	"Couldn't setup %s interrupt (irq=%d): %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"MSI"

l_.str.3:                               ; @.str.3
	.asciz	"INTx"

	.no_dead_strip	_qib_setup_7220_interrupt
.subsections_via_symbols
