	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcm_open
_pcm_open:                              ## @pcm_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	testb	%bl, %bl
	jle	LBB0_15
## %bb.1:
	movq	%rdi, %r15
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	movq	(%r15), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:
	movq	%rax, %r13
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	$-1, (%rax)
	leaq	32(%rax), %r14
	movq	_pcm_hardware_skel@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_memcpy
	movzbl	%bl, %edi
	callq	_DE_HWP
	movq	_channels_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	8(%r13), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, 8(%r13)
	movq	$0, 24(%r13)
	movl	$-1, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ecx
	leaq	1(%rax), %rdx
	cmpb	%bl, (%rax)
	movq	%rdx, %rax
	jle	LBB0_3
## %bb.4:
	movl	%ecx, 16(%r13)
	cmpb	%bl, 32(%r13)
	jle	LBB0_6
## %bb.5:
	movb	%bl, (%r14)
LBB0_6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_DIGITAL_MODE_ADAT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movl	$48000, 36(%r13)                ## imm = 0xBB80
	movq	_SNDRV_PCM_RATE_8000_48000@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%eax, 40(%r13)
LBB0_8:
	movl	8(%r14), %eax
	movl	%eax, 24(%r12)
	movq	(%r14), %rax
	movq	%rax, 16(%r12)
	movq	%r13, 8(%r12)
	movq	_audiopipe_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	%r15, %rdi
	callq	_snd_pcm_set_sync
	movq	_SNDRV_PCM_HW_PARAM_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_snd_pcm_hw_constraint_list
	testl	%eax, %eax
	js	LBB0_19
## %bb.9:
	movq	_SNDRV_PCM_HW_PARAM_PERIODS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_snd_pcm_hw_constraint_integer
	testl	%eax, %eax
	js	LBB0_19
## %bb.10:
	movq	_SNDRV_PCM_HW_PARAM_PERIOD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$32, %ecx
	callq	_snd_pcm_hw_constraint_step
	testl	%eax, %eax
	js	LBB0_19
## %bb.11:
	movq	_SNDRV_PCM_HW_PARAM_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$32, %ecx
	callq	_snd_pcm_hw_constraint_step
	testl	%eax, %eax
	js	LBB0_19
## %bb.12:
	movq	(%r15), %rdi
	movq	_SNDRV_PCM_HW_PARAM_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_hw_rule_sample_rate@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$-1, (%rsp)
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %r8
	movl	%edx, %r9d
	callq	_snd_pcm_hw_rule_add
	testl	%eax, %eax
	js	LBB0_19
## %bb.13:
	movq	_SNDRV_DMA_TYPE_DEV@GOTPCREL(%rip), %rax
	movq	%r14, %rcx
	movl	(%rax), %r14d
	movl	8(%rcx), %edi
	callq	_snd_dma_pci_data
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	addq	$4, %r13
	movl	%r14d, %edi
	movl	%eax, %esi
	movq	%r13, %rcx
	callq	_snd_dma_alloc_pages
	testl	%eax, %eax
	jns	LBB0_18
## %bb.14:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rdi
	callq	_DE_HWP
	movl	%r14d, %ebx
	jmp	LBB0_18
LBB0_15:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_19:
	movl	%eax, %ebx
	jmp	LBB0_18
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_17:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_pcm_hardware_skel,4,2          ## @pcm_hardware_skel
	.comm	_channels_list,8,3              ## @channels_list
	.comm	_DIGITAL_MODE_ADAT,8,3          ## @DIGITAL_MODE_ADAT
	.comm	_SNDRV_PCM_RATE_8000_48000,4,2  ## @SNDRV_PCM_RATE_8000_48000
	.comm	_audiopipe_free,4,2             ## @audiopipe_free
	.comm	_SNDRV_PCM_HW_PARAM_CHANNELS,4,2 ## @SNDRV_PCM_HW_PARAM_CHANNELS
	.comm	_SNDRV_PCM_HW_PARAM_PERIODS,4,2 ## @SNDRV_PCM_HW_PARAM_PERIODS
	.comm	_SNDRV_PCM_HW_PARAM_PERIOD_SIZE,4,2 ## @SNDRV_PCM_HW_PARAM_PERIOD_SIZE
	.comm	_SNDRV_PCM_HW_PARAM_BUFFER_SIZE,4,2 ## @SNDRV_PCM_HW_PARAM_BUFFER_SIZE
	.comm	_SNDRV_PCM_HW_PARAM_RATE,4,2    ## @SNDRV_PCM_HW_PARAM_RATE
	.comm	_hw_rule_sample_rate,4,2        ## @hw_rule_sample_rate
	.comm	_SNDRV_DMA_TYPE_DEV,4,2         ## @SNDRV_DMA_TYPE_DEV
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"s-g list allocation failed\n"

	.no_dead_strip	_pcm_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcm_open
_pcm_open:                              ; @pcm_open
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cmp	w1, #0
	b.le	LBB0_15
; %bb.1:
	mov	x23, x1
	mov	x21, x0
	bl	_snd_pcm_substream_chip
	mov	x19, x0
	ldr	x22, [x21]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_17
; %bb.2:
	mov	x20, x0
	mov	w26, #-1
	mov	x24, x0
	str	w26, [x24], #32
Lloh3:
	adrp	x1, _pcm_hardware_skel@GOTPAGE
Lloh4:
	ldr	x1, [x1, _pcm_hardware_skel@GOTPAGEOFF]
	mov	x0, x24
	mov	w2, #4
	bl	_memcpy
	and	x0, x23, #0xff
	bl	_DE_HWP
Lloh5:
	adrp	x8, _channels_list@GOTPAGE
Lloh6:
	ldr	x8, [x8, _channels_list@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	mov	x25, x20
	str	x8, [x25, #8]!
	str	xzr, [x25, #16]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w9, [x8], #1
	add	w26, w26, #1
	cmp	w9, w23
	b.le	LBB0_3
; %bb.4:
	str	w26, [x20, #16]
	ldrsb	w8, [x20, #32]
	cmp	w8, w23
	b.le	LBB0_6
; %bb.5:
	strb	w23, [x24]
LBB0_6:
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _DIGITAL_MODE_ADAT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DIGITAL_MODE_ADAT@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
Lloh11:
	adrp	x8, _SNDRV_PCM_RATE_8000_48000@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SNDRV_PCM_RATE_8000_48000@GOTPAGEOFF]
	mov	w9, #48000
Lloh13:
	ldr	w8, [x8]
	ldr	w10, [x20, #40]
	and	w8, w10, w8
	stp	w9, w8, [x20, #36]
LBB0_8:
	ldr	x8, [x24]
	ldr	w9, [x24, #8]
	str	w9, [x22, #24]
	stp	x20, x8, [x22, #8]
Lloh14:
	adrp	x8, _audiopipe_free@GOTPAGE
Lloh15:
	ldr	x8, [x8, _audiopipe_free@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x22]
	mov	x0, x21
	bl	_snd_pcm_set_sync
Lloh17:
	adrp	x8, _SNDRV_PCM_HW_PARAM_CHANNELS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_CHANNELS@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w1, #0
	mov	x3, x25
	bl	_snd_pcm_hw_constraint_list
	tbnz	w0, #31, LBB0_16
; %bb.9:
Lloh20:
	adrp	x8, _SNDRV_PCM_HW_PARAM_PERIODS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_PERIODS@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_snd_pcm_hw_constraint_integer
	tbnz	w0, #31, LBB0_16
; %bb.10:
Lloh23:
	adrp	x8, _SNDRV_PCM_HW_PARAM_PERIOD_SIZE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_PERIOD_SIZE@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w1, #0
	mov	w3, #32
	bl	_snd_pcm_hw_constraint_step
	tbnz	w0, #31, LBB0_16
; %bb.11:
Lloh26:
	adrp	x8, _SNDRV_PCM_HW_PARAM_BUFFER_SIZE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_BUFFER_SIZE@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w1, #0
	mov	w3, #32
	bl	_snd_pcm_hw_constraint_step
	tbnz	w0, #31, LBB0_16
; %bb.12:
	ldr	x0, [x21]
Lloh29:
	adrp	x8, _SNDRV_PCM_HW_PARAM_RATE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_RATE@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
Lloh32:
	adrp	x8, _hw_rule_sample_rate@GOTPAGE
Lloh33:
	ldr	x8, [x8, _hw_rule_sample_rate@GOTPAGEOFF]
Lloh34:
	ldr	w3, [x8]
	mov	w1, #0
	mov	x4, x19
	mov	x5, x2
	mov	w6, #-1
	bl	_snd_pcm_hw_rule_add
	tbnz	w0, #31, LBB0_16
; %bb.13:
Lloh35:
	adrp	x8, _SNDRV_DMA_TYPE_DEV@GOTPAGE
Lloh36:
	ldr	x8, [x8, _SNDRV_DMA_TYPE_DEV@GOTPAGEOFF]
Lloh37:
	ldr	w21, [x8]
	ldr	w0, [x19, #8]
	bl	_snd_dma_pci_data
	mov	x1, x0
Lloh38:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	add	x3, x20, #4
	mov	x0, x21
	bl	_snd_dma_alloc_pages
	tbnz	w0, #31, LBB0_20
; %bb.14:
	mov	w23, #0
	b	LBB0_19
LBB0_15:
Lloh41:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_18
LBB0_16:
	mov	x23, x0
	b	LBB0_19
LBB0_17:
Lloh43:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_19:
	mov	x0, x23
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_20:
	mov	x23, x0
Lloh45:
	adrp	x0, l_.str.1@PAGE
Lloh46:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DE_HWP
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_pcm_hardware_skel,4,2          ; @pcm_hardware_skel
	.comm	_channels_list,8,3              ; @channels_list
	.comm	_DIGITAL_MODE_ADAT,8,3          ; @DIGITAL_MODE_ADAT
	.comm	_SNDRV_PCM_RATE_8000_48000,4,2  ; @SNDRV_PCM_RATE_8000_48000
	.comm	_audiopipe_free,4,2             ; @audiopipe_free
	.comm	_SNDRV_PCM_HW_PARAM_CHANNELS,4,2 ; @SNDRV_PCM_HW_PARAM_CHANNELS
	.comm	_SNDRV_PCM_HW_PARAM_PERIODS,4,2 ; @SNDRV_PCM_HW_PARAM_PERIODS
	.comm	_SNDRV_PCM_HW_PARAM_PERIOD_SIZE,4,2 ; @SNDRV_PCM_HW_PARAM_PERIOD_SIZE
	.comm	_SNDRV_PCM_HW_PARAM_BUFFER_SIZE,4,2 ; @SNDRV_PCM_HW_PARAM_BUFFER_SIZE
	.comm	_SNDRV_PCM_HW_PARAM_RATE,4,2    ; @SNDRV_PCM_HW_PARAM_RATE
	.comm	_hw_rule_sample_rate,4,2        ; @hw_rule_sample_rate
	.comm	_SNDRV_DMA_TYPE_DEV,4,2         ; @SNDRV_DMA_TYPE_DEV
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"s-g list allocation failed\n"

	.no_dead_strip	_pcm_open
.subsections_via_symbols
