	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_pmac_awacs_write
_snd_pmac_awacs_write:                  ## @snd_pmac_awacs_write
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	_PMAC_SCREAMER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_snd_pmac_screamer_wait
LBB0_2:
	movq	16(%r15), %rdi
	movl	8(%r15), %esi
	shll	$22, %esi
	orl	%r14d, %esi
	callq	_out_le32
	movq	$-5000000, %rbx                 ## imm = 0xFFB3B4C0
	movq	_MASK_NEWECMD@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rdi
	callq	_in_le32
	testl	%eax, (%r14)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	jne	LBB0_3
## %bb.5:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_printd                     ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PMAC_SCREAMER,8,3              ## @PMAC_SCREAMER
	.comm	_MASK_NEWECMD,4,2               ## @MASK_NEWECMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"snd_pmac_awacs_write timeout\n"

	.no_dead_strip	_snd_pmac_awacs_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_pmac_awacs_write
_snd_pmac_awacs_write:                  ; @snd_pmac_awacs_write
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PMAC_SCREAMER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PMAC_SCREAMER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_snd_pmac_screamer_wait
LBB0_2:
	ldr	x0, [x19, #16]
	ldr	w8, [x19, #8]
	orr	w1, w20, w8, lsl #22
	bl	_out_le32
	mov	x20, #-19264
	movk	x20, #65459, lsl #16
Lloh3:
	adrp	x21, _MASK_NEWECMD@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MASK_NEWECMD@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #16]
	bl	_in_le32
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	adds	x20, x20, #1
	b.lo	LBB0_3
; %bb.5:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_snd_printd
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PMAC_SCREAMER,8,3              ; @PMAC_SCREAMER
	.comm	_MASK_NEWECMD,4,2               ; @MASK_NEWECMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"snd_pmac_awacs_write timeout\n"

	.no_dead_strip	_snd_pmac_awacs_write
.subsections_via_symbols
