	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _sdma_close_tx
__sdma_close_tx:                        ## @_sdma_close_tx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_SDMA_DESC0_LAST_DESC_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	(%rsi), %rax
	movq	16(%rsi), %rdx
	movq	(%rdx,%rax,8), %rax
	orl	%ecx, (%rax)
	movl	4(%rax), %ecx
	orl	(%rdi), %ecx
	movl	%ecx, 4(%rax)
	movq	_SDMA_TXREQ_F_URGENT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, 8(%rsi)
	je	LBB0_2
## %bb.1:
	movq	_SDMA_DESC1_HEAD_TO_HOST_FLAG@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_SDMA_DESC1_INT_REQ_FLAG@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 4(%rax)
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDMA_DESC0_LAST_DESC_FLAG,4,2  ## @SDMA_DESC0_LAST_DESC_FLAG
	.comm	_SDMA_TXREQ_F_URGENT,4,2        ## @SDMA_TXREQ_F_URGENT
	.comm	_SDMA_DESC1_HEAD_TO_HOST_FLAG,4,2 ## @SDMA_DESC1_HEAD_TO_HOST_FLAG
	.comm	_SDMA_DESC1_INT_REQ_FLAG,4,2    ## @SDMA_DESC1_INT_REQ_FLAG
	.no_dead_strip	__sdma_close_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _sdma_close_tx
__sdma_close_tx:                        ; @_sdma_close_tx
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _SDMA_DESC0_LAST_DESC_FLAG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDMA_DESC0_LAST_DESC_FLAG@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	ldr	x8, [x1, #16]
	ldr	x10, [x1]
	ldr	x8, [x8, x10, lsl #3]
	ldp	w10, w11, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
	ldr	w9, [x0]
	orr	w9, w11, w9
	str	w9, [x8, #4]
	ldr	w10, [x1, #8]
Lloh3:
	adrp	x11, _SDMA_TXREQ_F_URGENT@GOTPAGE
Lloh4:
	ldr	x11, [x11, _SDMA_TXREQ_F_URGENT@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x10, _SDMA_DESC1_HEAD_TO_HOST_FLAG@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SDMA_DESC1_HEAD_TO_HOST_FLAG@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _SDMA_DESC1_INT_REQ_FLAG@GOTPAGE
Lloh10:
	ldr	x11, [x11, _SDMA_DESC1_INT_REQ_FLAG@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	orr	w9, w10, w9
	orr	w9, w9, w11
	str	w9, [x8, #4]
LBB0_2:
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SDMA_DESC0_LAST_DESC_FLAG,4,2  ; @SDMA_DESC0_LAST_DESC_FLAG
	.comm	_SDMA_TXREQ_F_URGENT,4,2        ; @SDMA_TXREQ_F_URGENT
	.comm	_SDMA_DESC1_HEAD_TO_HOST_FLAG,4,2 ; @SDMA_DESC1_HEAD_TO_HOST_FLAG
	.comm	_SDMA_DESC1_INT_REQ_FLAG,4,2    ; @SDMA_DESC1_INT_REQ_FLAG
	.no_dead_strip	__sdma_close_tx
.subsections_via_symbols
