	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function poll_input
_poll_input:                            ## @poll_input
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_audio_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	_OPEN_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r14d, %r14d
	testl	%ecx, (%rax)
	je	LBB0_10
## %bb.1:
	movq	16(%rax), %rbx
	movq	_DMA_MAP_MAPPED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	jne	LBB0_8
## %bb.2:
	movq	8(%rbx), %rcx
	movq	_DMODE_INPUT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
LBB0_8:
	cmpq	$0, 16(%rbx)
	je	LBB0_10
## %bb.9:
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movq	_POLLRDNORM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_DMODE_NONE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_10
## %bb.4:
	movq	_PCM_ENABLE_INPUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rax)
	je	LBB0_10
## %bb.5:
	cmpq	$0, 16(%rbx)
	jne	LBB0_10
## %bb.6:
	cmpq	$0, 8(%rax)
	je	LBB0_10
## %bb.7:
	movl	%esi, %r15d
	leaq	24(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_DMAbuf_activate_recording
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_audio_devs,8,3                 ## @audio_devs
	.comm	_OPEN_READ,4,2                  ## @OPEN_READ
	.comm	_DMA_MAP_MAPPED,4,2             ## @DMA_MAP_MAPPED
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLRDNORM,4,2                 ## @POLLRDNORM
	.comm	_DMODE_INPUT,8,3                ## @DMODE_INPUT
	.comm	_DMODE_NONE,8,3                 ## @DMODE_NONE
	.comm	_PCM_ENABLE_INPUT,4,2           ## @PCM_ENABLE_INPUT
	.no_dead_strip	_poll_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function poll_input
_poll_input:                            ; @poll_input
	.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
Lloh0:
	adrp	x8, _audio_devs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _audio_devs@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8, w1, sxtw #3]
	ldr	w9, [x8]
Lloh3:
	adrp	x10, _OPEN_READ@GOTPAGE
Lloh4:
	ldr	x10, [x10, _OPEN_READ@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_9
; %bb.1:
	ldr	x20, [x8, #16]
	ldr	w9, [x20]
Lloh6:
	adrp	x10, _DMA_MAP_MAPPED@GOTPAGE
Lloh7:
	ldr	x10, [x10, _DMA_MAP_MAPPED@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_5
	b	LBB0_9
LBB0_3:
	ldr	x9, [x20, #8]
Lloh9:
	adrp	x10, _DMODE_INPUT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _DMODE_INPUT@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.4:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_9
LBB0_5:
Lloh12:
	adrp	x8, _POLLIN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _POLLRDNORM@GOTPAGE
Lloh16:
	ldr	x9, [x9, _POLLRDNORM@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w0, w9, w8
	b	LBB0_10
LBB0_6:
Lloh18:
	adrp	x10, _DMODE_NONE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _DMODE_NONE@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.7:
	ldr	w9, [x8, #4]
Lloh21:
	adrp	x10, _PCM_ENABLE_INPUT@GOTPAGE
Lloh22:
	ldr	x10, [x10, _PCM_ENABLE_INPUT@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_9
; %bb.8:
	ldr	x9, [x20, #16]
	cbz	x9, LBB0_11
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
LBB0_11:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_9
; %bb.12:
	mov	x19, x1
	add	x21, x20, #24
	mov	x0, x21
	bl	_spin_lock_irqsave
	mov	x0, x19
	mov	x1, x20
	bl	_DMAbuf_activate_recording
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_audio_devs,8,3                 ; @audio_devs
	.comm	_OPEN_READ,4,2                  ; @OPEN_READ
	.comm	_DMA_MAP_MAPPED,4,2             ; @DMA_MAP_MAPPED
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLRDNORM,4,2                 ; @POLLRDNORM
	.comm	_DMODE_INPUT,8,3                ; @DMODE_INPUT
	.comm	_DMODE_NONE,8,3                 ; @DMODE_NONE
	.comm	_PCM_ENABLE_INPUT,4,2           ; @PCM_ENABLE_INPUT
	.no_dead_strip	_poll_input
.subsections_via_symbols
