	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_cs46xx_capture_open
_snd_cs46xx_capture_open:               ## @snd_cs46xx_capture_open
	.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
	movq	%rdi, %r14
	callq	_snd_pcm_substream_chip
	movq	%rax, %rbx
	movq	_SNDRV_DMA_TYPE_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	32(%rbx), %edi
	callq	_snd_dma_pci_data
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	24(%rbx), %rcx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_snd_dma_alloc_pages
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	%r14, 16(%rbx)
	movq	(%r14), %rax
	movq	_snd_cs46xx_capture@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_SNDRV_PCM_INFO_MMAP_VALID@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, (%rax)
LBB0_4:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_DMA_TYPE_DEV,4,2         ## @SNDRV_DMA_TYPE_DEV
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_snd_cs46xx_capture,4,2         ## @snd_cs46xx_capture
	.comm	_SNDRV_PCM_INFO_MMAP_VALID,4,2  ## @SNDRV_PCM_INFO_MMAP_VALID
	.comm	_SNDRV_PCM_HW_PARAM_PERIOD_BYTES,4,2 ## @SNDRV_PCM_HW_PARAM_PERIOD_BYTES
	.comm	_hw_constraints_period_sizes,4,2 ## @hw_constraints_period_sizes
	.no_dead_strip	_snd_cs46xx_capture_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_cs46xx_capture_open
_snd_cs46xx_capture_open:               ; @snd_cs46xx_capture_open
	.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, x0
	bl	_snd_pcm_substream_chip
	mov	x19, x0
Lloh0:
	adrp	x8, _SNDRV_DMA_TYPE_DEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_DMA_TYPE_DEV@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	w0, [x0, #32]
	bl	_snd_dma_pci_data
	mov	x1, x0
Lloh3:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, x19, #24
	mov	x0, x21
	bl	_snd_dma_alloc_pages
	tbnz	x0, #63, LBB0_4
; %bb.1:
	str	x20, [x19, #16]
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _snd_cs46xx_capture@GOTPAGE
Lloh7:
	ldr	x9, [x9, _snd_cs46xx_capture@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	str	w9, [x8]
	ldr	x10, [x19, #8]
	cbz	x10, LBB0_3
; %bb.2:
Lloh9:
	adrp	x10, _SNDRV_PCM_INFO_MMAP_VALID@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SNDRV_PCM_INFO_MMAP_VALID@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x8]
LBB0_3:
	ldr	x8, [x19]
	mov	x0, x19
	mov	w1, #1
	blr	x8
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_DMA_TYPE_DEV,4,2         ; @SNDRV_DMA_TYPE_DEV
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_snd_cs46xx_capture,4,2         ; @snd_cs46xx_capture
	.comm	_SNDRV_PCM_INFO_MMAP_VALID,4,2  ; @SNDRV_PCM_INFO_MMAP_VALID
	.comm	_SNDRV_PCM_HW_PARAM_PERIOD_BYTES,4,2 ; @SNDRV_PCM_HW_PARAM_PERIOD_BYTES
	.comm	_hw_constraints_period_sizes,4,2 ; @hw_constraints_period_sizes
	.no_dead_strip	_snd_cs46xx_capture_open
.subsections_via_symbols
