	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_setup_6120_interrupt
_qib_setup_6120_interrupt:              ## @qib_setup_6120_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	movq	_Revision_R@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ChipRevMinor@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_SYM_FIELD
	cmpl	$2, %eax
	jl	LBB0_2
## %bb.1:
	movq	_GPIO_ERRINTR_MASK@GOTPCREL(%rip), %rax
	movq	8(%rbx), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	%edx, (%rcx)
	movq	_kr_gpio_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_qib_write_kreg
LBB0_2:
	movl	(%rbx), %edi
	movq	_qib_6120intr@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_3
## %bb.4:
	movl	%eax, %r14d
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_pci_irq_vector
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	movl	%r14d, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_qib_dev_err                    ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Revision_R,4,2                 ## @Revision_R
	.comm	_ChipRevMinor,4,2               ## @ChipRevMinor
	.comm	_GPIO_ERRINTR_MASK,4,2          ## @GPIO_ERRINTR_MASK
	.comm	_kr_gpio_mask,4,2               ## @kr_gpio_mask
	.comm	_qib_6120intr,4,2               ## @qib_6120intr
	.comm	_QIB_DRV_NAME,4,2               ## @QIB_DRV_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't setup interrupt (irq=%d): %d\n"

	.no_dead_strip	_qib_setup_6120_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_6120_interrupt
_qib_setup_6120_interrupt:              ; @qib_setup_6120_interrupt
	.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
	mov	x19, x0
	ldr	w0, [x0, #16]
Lloh0:
	adrp	x8, _Revision_R@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Revision_R@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ChipRevMinor@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ChipRevMinor@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_SYM_FIELD
	cmp	w0, #2
	b.lt	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _GPIO_ERRINTR_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GPIO_ERRINTR_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	ldr	w10, [x9]
	orr	w2, w10, w8
	str	w2, [x9]
Lloh9:
	adrp	x8, _kr_gpio_mask@GOTPAGE
Lloh10:
	ldr	x8, [x8, _kr_gpio_mask@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_qib_write_kreg
LBB0_2:
	ldr	w0, [x19]
Lloh12:
	adrp	x8, _qib_6120intr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _qib_6120intr@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _QIB_DRV_NAME@GOTPAGE
Lloh16:
	ldr	x8, [x8, _QIB_DRV_NAME@GOTPAGEOFF]
Lloh17:
	ldr	w5, [x8]
	mov	w1, #0
	mov	x3, #0
	mov	x4, x19
	bl	_pci_request_irq
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
	ldr	w0, [x19]
	mov	w1, #0
	bl	_pci_irq_vector
	mov	x2, x0
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_qib_dev_err
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_Revision_R,4,2                 ; @Revision_R
	.comm	_ChipRevMinor,4,2               ; @ChipRevMinor
	.comm	_GPIO_ERRINTR_MASK,4,2          ; @GPIO_ERRINTR_MASK
	.comm	_kr_gpio_mask,4,2               ; @kr_gpio_mask
	.comm	_qib_6120intr,4,2               ; @qib_6120intr
	.comm	_QIB_DRV_NAME,4,2               ; @QIB_DRV_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't setup interrupt (irq=%d): %d\n"

	.no_dead_strip	_qib_setup_6120_interrupt
.subsections_via_symbols
