	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_7220_set_intr_state
_qib_7220_set_intr_state:               ## @qib_7220_set_intr_state
	.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
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movq	_QIB_BADINTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_2
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movq	_kr_intmask@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_kr_intmask@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	$-1, %rdx
	callq	_qib_write_kreg
	movq	_kr_intclear@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_qib_write_kreg                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QIB_BADINTR,4,2                ## @QIB_BADINTR
	.comm	_kr_intmask,4,2                 ## @kr_intmask
	.comm	_kr_intclear,4,2                ## @kr_intclear
	.no_dead_strip	_qib_7220_set_intr_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_7220_set_intr_state
_qib_7220_set_intr_state:               ; @qib_7220_set_intr_state
	.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
	cbz	x1, LBB0_3
; %bb.1:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _QIB_BADINTR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QIB_BADINTR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh3:
	adrp	x8, _kr_intmask@GOTPAGE
Lloh4:
	ldr	x8, [x8, _kr_intmask@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _kr_intmask@GOTPAGE
Lloh6:
	ldr	x8, [x8, _kr_intmask@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #-1
	bl	_qib_write_kreg
Lloh8:
	adrp	x8, _kr_intclear@GOTPAGE
Lloh9:
	ldr	x8, [x8, _kr_intclear@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_qib_write_kreg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_QIB_BADINTR,4,2                ; @QIB_BADINTR
	.comm	_kr_intmask,4,2                 ; @kr_intmask
	.comm	_kr_intclear,4,2                ; @kr_intclear
	.no_dead_strip	_qib_7220_set_intr_state
.subsections_via_symbols
