	.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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	movq	_qib_7220intr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_QIB_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	callq	_pci_request_irq
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r14d
	movq	(%rbx), %rdi
	cmpq	$0, (%rdi)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r15
	cmoveq	%rax, %r15
	xorl	%esi, %esi
	callq	_pci_irq_vector
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movl	%eax, %ecx
	movl	%r14d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qib_dev_err                    ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qib_7220intr,4,2               ## @qib_7220intr
	.comm	_QIB_DRV_NAME,4,2               ## @QIB_DRV_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't setup %s interrupt (irq=%d): %d\n"

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

L_.str.2:                               ## @.str.2
	.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:
	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	x19, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x8, _qib_7220intr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _qib_7220intr@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _QIB_DRV_NAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QIB_DRV_NAME@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
	mov	w1, #0
	mov	x3, #0
	mov	x4, x19
	bl	_pci_request_irq
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	x0, [x19]
	ldr	x8, [x0]
Lloh6:
	adrp	x9, l_.str.1@PAGE
Lloh7:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh8:
	adrp	x10, l_.str.2@PAGE
Lloh9:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x8, #0
	csel	x21, x10, x9, eq
	mov	w1, #0
	bl	_pci_irq_vector
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x0
	mov	x0, x19
	mov	x2, x21
	mov	x4, x20
	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
	b	_qib_dev_err
LBB0_2:
	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 AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_qib_7220intr,4,2               ; @qib_7220intr
	.comm	_QIB_DRV_NAME,4,2               ; @QIB_DRV_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't setup %s interrupt (irq=%d): %d\n"

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

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

	.no_dead_strip	_qib_setup_7220_interrupt
.subsections_via_symbols
