	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enqueue_cmd
_enqueue_cmd:                           ## @enqueue_cmd
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	_sport_handle@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_sport_tx_curr_frag
	movl	%eax, -36(%rbp)
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_sport_incfrag
	movq	8(%rbx), %rsi
	movslq	-36(%rbp), %rdx
	movslq	(%rbx), %rbx
	imulq	%rdx, %rbx
	addq	%rsi, %rbx
	movq	_cmd_count@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rax,%rdx,8), %r8
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_TAG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r12), %rdx
	movslq	-36(%rbp), %rcx
	movq	(%rdx,%rcx,8), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	orl	%eax, 8(%rbx,%rcx,4)
	movslq	-36(%rbp), %rax
	movq	(%rdx,%rax,8), %rax
	leaq	(%rax,%rax,2), %rax
	movl	%r15d, (%rbx,%rax,4)
	movslq	-36(%rbp), %rax
	movq	(%rdx,%rax,8), %rax
	leaq	(%rax,%rax,2), %rax
	movl	%r14d, 4(%rbx,%rax,4)
	movslq	-36(%rbp), %rcx
	incq	(%rdx,%rcx,8)
	sarl	$8, %r15d
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_pr_debug
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sport_handle,8,3               ## @sport_handle
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sport->tx_buf:%p, nextfrag:0x%x nextwrite:%p, cmd_count:%d\n"

	.comm	_cmd_count,8,3                  ## @cmd_count
	.comm	_TAG_CMD,4,2                    ## @TAG_CMD
L_.str.1:                               ## @.str.1
	.asciz	"ac97_sport: Inserting %02x/%04x into fragment %d\n"

	.no_dead_strip	_enqueue_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enqueue_cmd
_enqueue_cmd:                           ; @enqueue_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _sport_handle@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sport_handle@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	mov	x0, x21
	bl	_sport_tx_curr_frag
	str	w0, [sp, #28]
	add	x1, sp, #28
	mov	x0, x21
	mov	w2, #1
	bl	_sport_incfrag
	ldr	x1, [x21, #8]
	ldrsw	x2, [sp, #28]
	ldrsw	x8, [x21]
	madd	x21, x8, x2, x1
Lloh3:
	adrp	x22, _cmd_count@GOTPAGE
Lloh4:
	ldr	x22, [x22, _cmd_count@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x8, [x8, x2, lsl #3]
	stp	x21, x8, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_pr_debug
Lloh7:
	adrp	x8, _TAG_CMD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TAG_CMD@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	x9, [x22]
	ldrsw	x10, [sp, #28]
	ldr	x10, [x9, x10, lsl #3]
	mov	w11, #12
	madd	x10, x10, x11, x21
	ldr	w12, [x10, #8]
	orr	w8, w12, w8
	str	w8, [x10, #8]
	ldrsw	x8, [sp, #28]
	ldr	x8, [x9, x8, lsl #3]
	mul	x8, x8, x11
	str	w20, [x21, x8]
	ldrsw	x8, [sp, #28]
	ldr	x8, [x9, x8, lsl #3]
	madd	x8, x8, x11, x21
	str	w19, [x8, #4]
	ldrsw	x8, [sp, #28]
	lsl	x10, x8, #3
	ldr	x11, [x9, x10]
	add	x11, x11, #1
	str	x11, [x9, x10]
	asr	w1, w20, #8
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_pr_debug
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_sport_handle,8,3               ; @sport_handle
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sport->tx_buf:%p, nextfrag:0x%x nextwrite:%p, cmd_count:%d\n"

	.comm	_cmd_count,8,3                  ; @cmd_count
	.comm	_TAG_CMD,4,2                    ; @TAG_CMD
l_.str.1:                               ; @.str.1
	.asciz	"ac97_sport: Inserting %02x/%04x into fragment %d\n"

	.no_dead_strip	_enqueue_cmd
.subsections_via_symbols
