	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_pd_capture_trigger
_snd_pd_capture_trigger:                ## @snd_pd_capture_trigger
	.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, %ebx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r15
	movq	_debug_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_log
LBB0_2:
	leal	-130(%rbx), %eax
	cmpl	$2, %eax
	jb	LBB0_6
## %bb.3:
	cmpl	$128, %ebx
	je	LBB0_9
## %bb.4:
	cmpl	$129, %ebx
	jne	LBB0_11
## %bb.5:
	movq	_STREAM_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	_STREAM_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	cmpl	%eax, (%r15)
	je	LBB0_12
## %bb.7:
	movq	$0, 4(%r15)
	movl	%eax, (%r15)
	movq	%r15, %rdi
	callq	_in_hibernation
	testl	%eax, %eax
	jne	LBB0_12
## %bb.8:
	movq	%r15, %rdi
	callq	_fire_audio_urb
	jmp	LBB0_12
LBB0_9:
	movq	_STREAM_SUSPEND@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movl	%eax, (%r15)
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug_mode,8,3                 ## @debug_mode
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cmd %d, audio stat : %d\n"

	.comm	_STREAM_ON,4,2                  ## @STREAM_ON
	.comm	_STREAM_SUSPEND,4,2             ## @STREAM_SUSPEND
	.comm	_STREAM_OFF,4,2                 ## @STREAM_OFF
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_snd_pd_capture_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_pd_capture_trigger
_snd_pd_capture_trigger:                ; @snd_pd_capture_trigger
	.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
	mov	x20, x1
	bl	_snd_pcm_substream_chip
	mov	x19, x0
Lloh0:
	adrp	x8, _debug_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug_mode@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w2, [x19]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_log
LBB0_2:
	sub	w8, w20, #130
	cmp	w8, #2
	b.lo	LBB0_6
; %bb.3:
	cmp	w20, #128
	b.eq	LBB0_10
; %bb.4:
	cmp	w20, #129
	b.ne	LBB0_12
; %bb.5:
	mov	w0, #0
Lloh5:
	adrp	x8, _STREAM_OFF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STREAM_OFF@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
	ldr	w9, [x19]
Lloh7:
	adrp	x8, _STREAM_ON@GOTPAGE
Lloh8:
	ldr	x8, [x8, _STREAM_ON@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w9, w8
	b.eq	LBB0_9
; %bb.7:
	stp	wzr, wzr, [x19, #4]
	str	w8, [x19]
	mov	x0, x19
	bl	_in_hibernation
	mov	x8, x0
	mov	w0, #0
	cbnz	w8, LBB0_13
; %bb.8:
	mov	x0, x19
	bl	_fire_audio_urb
LBB0_9:
	mov	w0, #0
	b	LBB0_13
LBB0_10:
	mov	w0, #0
Lloh10:
	adrp	x8, _STREAM_SUSPEND@GOTPAGE
Lloh11:
	ldr	x8, [x8, _STREAM_SUSPEND@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_13
LBB0_12:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_debug_mode,8,3                 ; @debug_mode
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cmd %d, audio stat : %d\n"

	.comm	_STREAM_ON,4,2                  ; @STREAM_ON
	.comm	_STREAM_SUSPEND,4,2             ; @STREAM_SUSPEND
	.comm	_STREAM_OFF,4,2                 ; @STREAM_OFF
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_snd_pd_capture_trigger
.subsections_via_symbols
