	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_sb8_open
_snd_sb8_open:                          ## @snd_sb8_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_snd_pcm_substream_chip
	movq	%rax, %r12
	movq	8(%r15), %r14
	leaq	24(%rax), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	cmpl	$0, (%r12)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_2:
	movq	_SB_OPEN_PCM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	(%r15), %rcx
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	cmpq	(%rax), %rcx
	sete	%dl
	movq	%r15, 8(%r12,%rdx,8)
	jne	LBB0_3
## %bb.4:
	movq	_snd_sb8_playback@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_3:
	movq	_snd_sb8_capture@GOTPCREL(%rip), %rcx
LBB0_5:
	movq	(%rcx), %rcx
	movq	%rcx, (%r14)
	movl	4(%r12), %ecx
	cmpl	$129, %ecx
	je	LBB0_8
## %bb.6:
	cmpl	$128, %ecx
	jne	LBB0_11
## %bb.7:
	movabsq	$8589978692, %rax               ## imm = 0x20000AC44
	movq	%rax, (%r14)
	movq	_SNDRV_PCM_HW_PARAM_RATE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_snd_sb8_hw_constraint_rate_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_SNDRV_PCM_HW_PARAM_CHANNELS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r9d
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	pushq	$-1
	pushq	%rdx
	callq	_snd_pcm_hw_rule_add
	addq	$16, %rsp
	movl	(%rbx), %edx
	movq	_snd_sb8_hw_constraint_channels_rate@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r15), %r9d
	subq	$8, %rsp
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	pushq	$-1
	callq	_snd_pcm_hw_rule_add
	addq	$16, %rsp
	jmp	LBB0_11
LBB0_8:
	movq	(%r15), %rcx
	cmpq	(%rax), %rcx
	jne	LBB0_10
## %bb.9:
	movl	$44100, (%r14)                  ## imm = 0xAC44
	jmp	LBB0_11
LBB0_10:
	movl	$15000, (%r14)                  ## imm = 0x3A98
LBB0_11:
	movq	_SNDRV_PCM_HW_PARAM_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_hw_constraints_clock@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_snd_pcm_hw_constraint_ratnums
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_SB_OPEN_PCM,4,2                ## @SB_OPEN_PCM
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_snd_sb8_playback,8,2           ## @snd_sb8_playback
	.comm	_snd_sb8_capture,8,2            ## @snd_sb8_capture
	.comm	_SNDRV_PCM_HW_PARAM_RATE,4,2    ## @SNDRV_PCM_HW_PARAM_RATE
	.comm	_snd_sb8_hw_constraint_rate_channels,4,2 ## @snd_sb8_hw_constraint_rate_channels
	.comm	_SNDRV_PCM_HW_PARAM_CHANNELS,4,2 ## @SNDRV_PCM_HW_PARAM_CHANNELS
	.comm	_snd_sb8_hw_constraint_channels_rate,4,2 ## @snd_sb8_hw_constraint_channels_rate
	.comm	_hw_constraints_clock,4,2       ## @hw_constraints_clock
	.no_dead_strip	_snd_sb8_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function snd_sb8_open
lCPI0_0:
	.long	44100                           ; 0xac44
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_snd_sb8_open:                          ; @snd_sb8_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x0
	ldr	x19, [x20, #8]
	add	x22, x0, #24
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w8, [x21]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
Lloh0:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_2:
Lloh3:
	adrp	x8, _SB_OPEN_PCM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SB_OPEN_PCM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x21]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	x9, [x20]
Lloh6:
	adrp	x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
	ldr	x10, [x8]
	mov	w11, #8
	mov	w12, #16
	cmp	x9, x10
	csel	x9, x12, x11, eq
	str	x20, [x21, x9]
Lloh8:
	adrp	x9, _snd_sb8_playback@GOTPAGE
Lloh9:
	ldr	x9, [x9, _snd_sb8_playback@GOTPAGEOFF]
Lloh10:
	adrp	x10, _snd_sb8_capture@GOTPAGE
Lloh11:
	ldr	x10, [x10, _snd_sb8_capture@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldr	x9, [x9]
	str	x9, [x19]
	ldr	w9, [x21, #4]
Lloh12:
	adrp	x21, _SNDRV_PCM_HW_PARAM_RATE@GOTPAGE
Lloh13:
	ldr	x21, [x21, _SNDRV_PCM_HW_PARAM_RATE@GOTPAGEOFF]
	cmp	w9, #129
	b.eq	LBB0_5
; %bb.3:
	cmp	w9, #128
	b.ne	LBB0_9
; %bb.4:
Lloh14:
	adrp	x8, lCPI0_0@PAGE
Lloh15:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	ldr	w2, [x21]
Lloh16:
	adrp	x8, _snd_sb8_hw_constraint_rate_channels@GOTPAGE
Lloh17:
	ldr	x8, [x8, _snd_sb8_hw_constraint_rate_channels@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
Lloh19:
	adrp	x20, _SNDRV_PCM_HW_PARAM_CHANNELS@GOTPAGE
Lloh20:
	ldr	x20, [x20, _SNDRV_PCM_HW_PARAM_CHANNELS@GOTPAGEOFF]
	ldr	w5, [x20]
	mov	w8, #-1
	str	x8, [sp]
	mov	x0, x19
	mov	w1, #0
	mov	x4, #0
	mov	x6, x2
	bl	_snd_pcm_hw_rule_add
	ldr	w2, [x20]
Lloh21:
	adrp	x8, _snd_sb8_hw_constraint_channels_rate@GOTPAGE
Lloh22:
	ldr	x8, [x8, _snd_sb8_hw_constraint_channels_rate@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	ldr	w5, [x21]
	mov	x0, x19
	mov	w1, #0
	mov	x4, #0
	mov	w6, #-1
	bl	_snd_pcm_hw_rule_add
	b	LBB0_9
LBB0_5:
	ldr	x9, [x20]
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	w8, #44100
	b	LBB0_8
LBB0_7:
	mov	w8, #15000
LBB0_8:
	str	w8, [x19]
LBB0_9:
	ldr	w2, [x21]
Lloh24:
	adrp	x3, _hw_constraints_clock@GOTPAGE
Lloh25:
	ldr	x3, [x3, _hw_constraints_clock@GOTPAGEOFF]
	mov	x0, x19
	mov	w1, #0
	bl	_snd_pcm_hw_constraint_ratnums
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdrp	Lloh14, Lloh16
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_SB_OPEN_PCM,4,2                ; @SB_OPEN_PCM
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_snd_sb8_playback,8,2           ; @snd_sb8_playback
	.comm	_snd_sb8_capture,8,2            ; @snd_sb8_capture
	.comm	_SNDRV_PCM_HW_PARAM_RATE,4,2    ; @SNDRV_PCM_HW_PARAM_RATE
	.comm	_snd_sb8_hw_constraint_rate_channels,4,2 ; @snd_sb8_hw_constraint_rate_channels
	.comm	_SNDRV_PCM_HW_PARAM_CHANNELS,4,2 ; @SNDRV_PCM_HW_PARAM_CHANNELS
	.comm	_snd_sb8_hw_constraint_channels_rate,4,2 ; @snd_sb8_hw_constraint_channels_rate
	.comm	_hw_constraints_clock,4,2       ; @hw_constraints_clock
	.no_dead_strip	_snd_sb8_open
.subsections_via_symbols
