	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_7220_sdma_sendctrl
_qib_7220_sdma_sendctrl:                ## @qib_7220_sdma_sendctrl
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	(%rdi), %r14
	movq	_QIB_SDMA_SENDCTRL_OP_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	andl	%esi, %r13d
	movq	_SendCtrl@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SDmaEnable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SYM_MASK
	movl	%eax, %ebx
	xorl	%eax, %eax
	testl	%r13d, %r13d
	cmovnel	%ebx, %r13d
	cmovnel	%eax, %ebx
	movq	_QIB_SDMA_SENDCTRL_OP_INTENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	andl	%r15d, %r12d
	movq	_SendCtrl@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SDmaIntEnable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SYM_MASK
	testl	%r12d, %r12d
	cmovnel	%eax, %r12d
	movl	$0, %ecx
	cmovnel	%ecx, %eax
	orl	%r13d, %r12d
	movq	_QIB_SDMA_SENDCTRL_OP_HALT@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r15d
	orl	%eax, %ebx
	movq	_SendCtrl@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SDmaHalt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SYM_MASK
	testl	%r15d, %r15d
	cmovnel	%eax, %r15d
	movl	$0, %ecx
	cmovnel	%ecx, %eax
	orl	%r12d, %r15d
	orl	%eax, %ebx
	movq	%r14, %rdi
	callq	_spin_lock
	orl	4(%r14), %r15d
	notl	%ebx
	andl	%r15d, %ebx
	movl	%ebx, 4(%r14)
	movq	_kr_sendctrl@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_qib_write_kreg
	movq	_kr_scratch@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_qib_write_kreg
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QIB_SDMA_SENDCTRL_OP_ENABLE,4,2 ## @QIB_SDMA_SENDCTRL_OP_ENABLE
	.comm	_SendCtrl,4,2                   ## @SendCtrl
	.comm	_SDmaEnable,4,2                 ## @SDmaEnable
	.comm	_QIB_SDMA_SENDCTRL_OP_INTENABLE,4,2 ## @QIB_SDMA_SENDCTRL_OP_INTENABLE
	.comm	_SDmaIntEnable,4,2              ## @SDmaIntEnable
	.comm	_QIB_SDMA_SENDCTRL_OP_HALT,4,2  ## @QIB_SDMA_SENDCTRL_OP_HALT
	.comm	_SDmaHalt,4,2                   ## @SDmaHalt
	.comm	_kr_sendctrl,4,2                ## @kr_sendctrl
	.comm	_kr_scratch,4,2                 ## @kr_scratch
	.no_dead_strip	_qib_7220_sdma_sendctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_7220_sdma_sendctrl
_qib_7220_sdma_sendctrl:                ; @qib_7220_sdma_sendctrl
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _QIB_SDMA_SENDCTRL_OP_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QIB_SDMA_SENDCTRL_OP_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x22, _SendCtrl@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SendCtrl@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh5:
	adrp	x8, _SDmaEnable@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SDmaEnable@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_SYM_MASK
	tst	w21, w20
	csel	w21, wzr, w0, eq
Lloh8:
	adrp	x8, _QIB_SDMA_SENDCTRL_OP_INTENABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QIB_SDMA_SENDCTRL_OP_INTENABLE@GOTPAGEOFF]
	csel	w23, w0, wzr, eq
Lloh10:
	ldr	w24, [x8]
	ldr	w0, [x22]
Lloh11:
	adrp	x8, _SDmaIntEnable@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SDmaIntEnable@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_SYM_MASK
	tst	w24, w20
	csel	w8, wzr, w0, eq
	orr	w21, w21, w8
	csel	w8, w0, wzr, eq
Lloh14:
	adrp	x9, _QIB_SDMA_SENDCTRL_OP_HALT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _QIB_SDMA_SENDCTRL_OP_HALT@GOTPAGEOFF]
	orr	w23, w23, w8
Lloh16:
	ldr	w24, [x9]
	ldr	w0, [x22]
Lloh17:
	adrp	x8, _SDmaHalt@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SDmaHalt@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_SYM_MASK
	tst	w24, w20
	csel	w8, wzr, w0, eq
	orr	w20, w21, w8
	csel	w8, w0, wzr, eq
	orr	w21, w23, w8
	mov	x0, x19
	bl	_spin_lock
	ldr	w8, [x19, #4]
	orr	w8, w8, w20
	bic	w2, w8, w21
	str	w2, [x19, #4]
Lloh20:
	adrp	x8, _kr_sendctrl@GOTPAGE
Lloh21:
	ldr	x8, [x8, _kr_sendctrl@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_qib_write_kreg
Lloh23:
	adrp	x8, _kr_scratch@GOTPAGE
Lloh24:
	ldr	x8, [x8, _kr_scratch@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_qib_write_kreg
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_QIB_SDMA_SENDCTRL_OP_ENABLE,4,2 ; @QIB_SDMA_SENDCTRL_OP_ENABLE
	.comm	_SendCtrl,4,2                   ; @SendCtrl
	.comm	_SDmaEnable,4,2                 ; @SDmaEnable
	.comm	_QIB_SDMA_SENDCTRL_OP_INTENABLE,4,2 ; @QIB_SDMA_SENDCTRL_OP_INTENABLE
	.comm	_SDmaIntEnable,4,2              ; @SDmaIntEnable
	.comm	_QIB_SDMA_SENDCTRL_OP_HALT,4,2  ; @QIB_SDMA_SENDCTRL_OP_HALT
	.comm	_SDmaHalt,4,2                   ; @SDmaHalt
	.comm	_kr_sendctrl,4,2                ; @kr_sendctrl
	.comm	_kr_scratch,4,2                 ; @kr_scratch
	.no_dead_strip	_qib_7220_sdma_sendctrl
.subsections_via_symbols
