	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _emit_LPEND
__emit_LPEND:                           ## @_emit_LPEND
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edi, %edi
	jne	LBB0_5
## %bb.1:
	movl	(%rdx), %ecx
	movl	12(%rdx), %r9d
	movl	4(%rdx), %r11d
	movl	8(%rdx), %r10d
	movq	_CMD_DMALPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edx
	orl	$4, %edx
	testl	%r10d, %r10d
	cmovel	%eax, %edx
	movl	%edx, %edi
	orl	$16, %edi
	testl	%r11d, %r11d
	cmovnel	%edx, %edi
	movl	%edi, (%rsi)
	movq	_SINGLE@GOTPCREL(%rip), %r8
	movl	$1, %eax
	cmpl	(%r8), %ecx
	je	LBB0_3
## %bb.2:
	movq	_BURST@GOTPCREL(%rip), %rdx
	movl	$3, %eax
	cmpl	(%rdx), %ecx
	jne	LBB0_4
LBB0_3:
	orl	%eax, %edi
	movl	%edi, (%rsi)
LBB0_4:
	testl	%r11d, %r11d
	movl	%r9d, 4(%rsi)
	movq	_SZ_DMALPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	_BURST@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	sete	%al
	addb	$65, %al
	cmpl	(%r8), %ecx
	movzbl	%al, %eax
	movl	$83, %ecx
	cmovnel	%eax, %ecx
	movzbl	%cl, %ecx
	cmpl	$1, %r10d
	movl	$49, %r8d
	sbbl	$0, %r8d
	leaq	L_.str(%rip), %rsi
	callq	_PL330_DBGCMD_DUMP
LBB0_5:
	movq	_SZ_DMALPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SZ_DMALPEND,4,2                ## @SZ_DMALPEND
	.comm	_CMD_DMALPEND,4,2               ## @CMD_DMALPEND
	.comm	_SINGLE,4,2                     ## @SINGLE
	.comm	_BURST,4,2                      ## @BURST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\tDMALP%s%c_%c bjmpto_%x\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"END"

	.no_dead_strip	__emit_LPEND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _emit_LPEND
__emit_LPEND:                           ; @_emit_LPEND
	.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
Lloh0:
	adrp	x19, _SZ_DMALPEND@GOTPAGE
Lloh1:
	ldr	x19, [x19, _SZ_DMALPEND@GOTPAGEOFF]
	cbnz	w0, LBB0_7
; %bb.1:
	ldp	w8, w10, [x2]
	ldp	w9, w5, [x2, #8]
Lloh2:
	adrp	x11, _CMD_DMALPEND@GOTPAGE
Lloh3:
	ldr	x11, [x11, _CMD_DMALPEND@GOTPAGEOFF]
Lloh4:
	ldr	w11, [x11]
	orr	w12, w11, #0x4
	cmp	w9, #0
	csel	w11, w11, w12, eq
	orr	w12, w11, #0x10
	cmp	w10, #0
	csel	w13, w12, w11, eq
	str	w13, [x1]
Lloh5:
	adrp	x11, _SINGLE@GOTPAGE
Lloh6:
	ldr	x11, [x11, _SINGLE@GOTPAGEOFF]
	ldr	w14, [x11]
Lloh7:
	adrp	x12, _BURST@GOTPAGE
Lloh8:
	ldr	x12, [x12, _BURST@GOTPAGEOFF]
	cmp	w8, w14
	b.ne	LBB0_3
; %bb.2:
	mov	w14, #1
	b	LBB0_5
LBB0_3:
	ldr	w14, [x12]
	cmp	w8, w14
	b.ne	LBB0_6
; %bb.4:
	mov	w14, #3
LBB0_5:
	orr	w13, w13, w14
	str	w13, [x1]
LBB0_6:
	str	w5, [x1, #4]
	ldr	w0, [x19]
Lloh9:
	adrp	x13, l_.str.1@PAGE
Lloh10:
	add	x13, x13, l_.str.1@PAGEOFF
Lloh11:
	adrp	x14, l_.str.2@PAGE
Lloh12:
	add	x14, x14, l_.str.2@PAGEOFF
	cmp	w10, #0
	csel	x2, x14, x13, eq
	ldr	w10, [x11]
	ldr	w11, [x12]
	cmp	w8, w11
	mov	w11, #65
	cinc	w11, w11, eq
	mov	w12, #83
	cmp	w8, w10
	csel	w3, w12, w11, eq
	cmp	w9, #0
	mov	w8, #48
	cinc	w4, w8, ne
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PL330_DBGCMD_DUMP
LBB0_7:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SZ_DMALPEND,4,2                ; @SZ_DMALPEND
	.comm	_CMD_DMALPEND,4,2               ; @CMD_DMALPEND
	.comm	_SINGLE,4,2                     ; @SINGLE
	.comm	_BURST,4,2                      ; @BURST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\tDMALP%s%c_%c bjmpto_%x\n"

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

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

	.no_dead_strip	__emit_LPEND
.subsections_via_symbols
