	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function complete_handler_audio
_complete_handler_audio:                ## @complete_handler_audio
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	16(%rdi), %rax
	movq	16(%rax), %r14
	movl	$0, -20(%rbp)
	cmpl	$1, (%rax)
	je	LBB0_9
## %bb.1:
	movq	8(%rax), %rax
	movq	_STREAM_ON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.2:
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	jne	LBB0_9
## %bb.3:
	testq	%r14, %r14
	je	LBB0_7
## %bb.4:
	cmpq	$0, 8(%rbx)
	je	LBB0_7
## %bb.5:
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_handle_audio_data
	cmpl	$0, -20(%rbp)
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_snd_pcm_period_elapsed
LBB0_7:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_usb_submit_urb
	testl	%eax, %eax
	jns	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_log
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STREAM_ON,8,3                  ## @STREAM_ON
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"audio urb failed (errcod = %i)"

	.no_dead_strip	_complete_handler_audio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function complete_handler_audio
_complete_handler_audio:                ; @complete_handler_audio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x8, [x0, #16]
	ldr	x20, [x8, #16]
	str	wzr, [sp, #12]
	ldr	w9, [x8]
	cmp	w9, #1
	b.eq	LBB0_9
; %bb.1:
	ldr	x8, [x8, #8]
Lloh0:
	adrp	x9, _STREAM_ON@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STREAM_ON@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.2:
	mov	x19, x0
	ldr	x8, [x0]
	cbnz	x8, LBB0_9
; %bb.3:
	cbz	x20, LBB0_7
; %bb.4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.5:
	add	x1, sp, #12
	mov	x0, x19
	bl	_handle_audio_data
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_snd_pcm_period_elapsed
LBB0_7:
Lloh3:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_usb_submit_urb
	tbz	w0, #31, LBB0_9
; %bb.8:
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_STREAM_ON,8,3                  ; @STREAM_ON
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"audio urb failed (errcod = %i)"

	.no_dead_strip	_complete_handler_audio
.subsections_via_symbols
