	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_pcm_oss_period_size
_snd_pcm_oss_period_size:               ## @snd_pcm_oss_period_size
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	8(%rdi), %r13
	movq	%rsi, %rdi
	callq	_params_format
	movl	%eax, %edi
	callq	_snd_pcm_format_physical_width
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_params_channels
                                        ## kill: def $eax killed $eax def $rax
	imull	%ebx, %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movslq	%ecx, %rbx
	movq	_SNDRV_PCM_HW_PARAM_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_snd_pcm_hw_param_value_max
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_snd_pcm_plug_client_size
	imulq	%rbx, %rax
	movq	%rax, %rdi
	callq	_ld2
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	movslq	%edx, %r15
	movq	%r12, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%r13, %rdi
	callq	_oss_runtime
	cmpq	%r15, (%rax)
	jae	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	callq	_oss_runtime
	movq	(%rax), %r15
LBB0_3:
	movq	%r12, %rdi
	callq	_oss_substream
	cmpl	$17, (%rax)
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	jl	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_oss_substream
	movslq	(%rax), %rbx
	jmp	LBB0_17
LBB0_5:
	movq	%r13, %rdi
	callq	_oss_runtime
	cmpl	$0, 8(%rax)
	je	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	callq	_oss_runtime
	movb	8(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	cltq
	movq	%r15, %rbx
	shrq	%rbx
	cmpq	%rax, %rbx
	jmp	LBB0_16
LBB0_7:
	movq	%r14, %rdi
	callq	_params_rate
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_params_format
	movl	%eax, %edi
	callq	_snd_pcm_format_physical_width
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_params_channels
                                        ## kill: def $eax killed $eax def $rax
	imull	-60(%rbp), %eax                 ## 4-byte Folded Reload
	imull	%ebx, %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movslq	%ecx, %rax
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r14
	shrq	%rbx
	cmpq	%rax, %rbx
	ja	LBB0_8
## %bb.9:
	movq	%r13, %rdi
	callq	_oss_runtime
	cmpl	$0, 12(%rax)
	je	LBB0_10
## %bb.11:
	movq	%r13, %rdi
	callq	_oss_runtime
	movl	12(%rax), %ecx
	jmp	LBB0_12
LBB0_10:
	xorl	%ecx, %ecx
	cmpq	$32776, %r14                    ## imm = 0x8008
	setae	%cl
	leal	4(,%rcx,4), %eax
	orb	$2, %cl
	movq	%rbx, %rdx
                                        ## kill: def $cl killed $cl killed $rcx
	shrq	%cl, %rdx
	cmpq	$4096, %rdx                     ## imm = 0x1000
	movl	$1, %ecx
	cmovael	%eax, %ecx
LBB0_12:
	movslq	%ecx, %rsi
	movq	%rbx, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_13
## %bb.14:
	movq	%rbx, %rax
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_15
LBB0_13:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_15:
	cmpq	$17, %rax
	movl	$16, %ebx
LBB0_16:
	cmovaeq	%rax, %rbx
LBB0_17:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	_SNDRV_PCM_HW_PARAM_PERIOD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_snd_pcm_hw_param_value_min
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_snd_pcm_plug_client_size
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	imulq	%r12, %rax
	leaq	-1(%rax), %rdi
	callq	_ld2
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ecx
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	$1, %r14d
	movslq	%eax, %r13
	cmpq	%r13, %rbx
	cmovaq	%rbx, %r13
	movq	_SNDRV_PCM_HW_PARAM_PERIOD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_snd_pcm_hw_param_value_max
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_snd_pcm_plug_client_size
	imulq	%rax, %r12
	movq	%r12, %rdi
	callq	_ld2
	movl	%eax, %ecx
	shll	%cl, %r14d
	movslq	%r14d, %rax
	cmpq	%rax, %r13
	cmovaeq	%rax, %r13
	movq	%r15, %rax
	orq	%r13, %rax
	shrq	$32, %rax
	je	LBB0_18
## %bb.19:
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%r13
	movq	%rax, %r14
	jmp	LBB0_20
LBB0_18:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%r13d
	movl	%eax, %r14d
LBB0_20:
	movq	%rbx, %rdi
	callq	_oss_substream
	cmpl	$2, 4(%rax)
	jl	LBB0_22
## %bb.21:
	movq	%rbx, %rdi
	callq	_oss_substream
	movslq	4(%rax), %r14
LBB0_22:
	movq	_SNDRV_PCM_HW_PARAM_PERIODS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_snd_pcm_hw_param_value_max
	movq	%rax, %r12
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_oss_runtime
	cmpq	$0, 16(%rax)
	je	LBB0_25
## %bb.23:
	movq	%rbx, %rdi
	callq	_oss_runtime
	cmpq	16(%rax), %r12
	jbe	LBB0_25
## %bb.24:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_oss_runtime
	movq	16(%rax), %r12
LBB0_25:
	cmpq	%r12, %r14
	cmovbq	%r14, %r12
	movq	_SNDRV_PCM_HW_PARAM_PERIODS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_snd_pcm_hw_param_value_min
	cmpq	%r12, %rax
	cmovaq	%rax, %r12
	cmpq	$3, %r12
	movl	$2, %r14d
	cmovaeq	%r12, %r14
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rbx
	movq	%r13, %rax
	imulq	%r14, %rax
	shrq	%r13
	cmpq	%r15, %rax
	ja	LBB0_26
## %bb.27:
	cmpq	$15, %rbx
	ja	LBB0_29
## %bb.28:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_30
LBB0_29:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_oss_runtime
	movq	%rbx, 24(%rax)
	movq	%r15, %rdi
	callq	_oss_runtime
	movl	$1, 32(%rax)
	movq	%r15, %rdi
	callq	_oss_runtime
	movq	%r14, 40(%rax)
	xorl	%eax, %eax
LBB0_30:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_PCM_HW_PARAM_BUFFER_SIZE,4,2 ## @SNDRV_PCM_HW_PARAM_BUFFER_SIZE
	.comm	_SNDRV_PCM_HW_PARAM_PERIOD_SIZE,4,2 ## @SNDRV_PCM_HW_PARAM_PERIOD_SIZE
	.comm	_SNDRV_PCM_HW_PARAM_PERIODS,4,2 ## @SNDRV_PCM_HW_PARAM_PERIODS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_snd_pcm_oss_period_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_pcm_oss_period_size
_snd_pcm_oss_period_size:               ; @snd_pcm_oss_period_size
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x19, [x0, #8]
	mov	x0, x1
	bl	_params_format
	bl	_snd_pcm_format_physical_width
	mov	x23, x0
	mov	x0, x22
	bl	_params_channels
	mul	w8, w0, w23
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	sbfx	x25, x8, #3, #29
Lloh0:
	adrp	x8, _SNDRV_PCM_HW_PARAM_BUFFER_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_BUFFER_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	bl	_snd_pcm_hw_param_value_max
	mov	x1, x0
	mov	x0, x21
	bl	_snd_pcm_plug_client_size
	mul	x0, x0, x25
	bl	_ld2
	mov	w8, #1
	lsl	w8, w8, w0
	sxtw	x24, w8
	mov	x0, x21
	bl	_atomic_read
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_oss_runtime
	ldr	x8, [x0]
	cmp	x8, x24
	b.hs	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_oss_runtime
	ldr	x24, [x0]
LBB0_3:
	mov	x0, x21
	bl	_oss_substream
	ldr	w8, [x0]
	cmp	w8, #17
	b.lt	LBB0_5
; %bb.4:
	mov	x0, x21
	bl	_oss_substream
	ldrsw	x22, [x0]
	b	LBB0_13
LBB0_5:
	mov	x0, x19
	bl	_oss_runtime
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_oss_runtime
	ldr	w8, [x0, #8]
	mov	w9, #1
	lsl	w8, w9, w8
	sxtw	x8, w8
	lsr	x9, x24, #1
	cmp	x9, x8
	csel	x22, x9, x8, lo
	b	LBB0_13
LBB0_7:
	mov	x0, x22
	bl	_params_rate
	mov	x23, x0
	mov	x0, x22
	bl	_params_format
	bl	_snd_pcm_format_physical_width
	mul	w23, w0, w23
	mov	x0, x22
	bl	_params_channels
	mul	w8, w23, w0
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	sbfx	x8, x8, #3, #29
	mov	x22, x24
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x22
	lsr	x22, x22, #1
	cmp	x22, x8
	b.hi	LBB0_8
; %bb.9:
	mov	x0, x19
	bl	_oss_runtime
	ldr	w8, [x0, #12]
	cbz	w8, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_oss_runtime
	ldr	w8, [x0, #12]
	b	LBB0_12
LBB0_11:
	mov	w8, #32775
	cmp	x23, x8
	mov	w8, #4
	mov	w9, #8
	csel	w8, w9, w8, hi
	mov	w9, #2
	cinc	x9, x9, hi
	lsr	x9, x22, x9
	cmp	x9, #1, lsl #12                 ; =4096
	csinc	w8, w8, wzr, hs
LBB0_12:
	sxtw	x8, w8
	udiv	x8, x22, x8
	mov	w9, #16
	cmp	x8, #16
	csel	x22, x8, x9, hi
LBB0_13:
Lloh3:
	adrp	x23, _SNDRV_PCM_HW_PARAM_PERIOD_SIZE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _SNDRV_PCM_HW_PARAM_PERIOD_SIZE@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	mov	x2, #0
	bl	_snd_pcm_hw_param_value_min
	mov	x1, x0
	mov	x0, x21
	bl	_snd_pcm_plug_client_size
	mul	x8, x0, x25
	sub	x0, x8, #1
	bl	_ld2
	add	w8, w0, #1
	mov	w26, #1
	lsl	w8, w26, w8
	sxtw	x8, w8
	cmp	x22, x8
	csel	x22, x22, x8, hi
	ldr	w1, [x23]
	mov	x0, x20
	mov	x2, #0
	bl	_snd_pcm_hw_param_value_max
	mov	x1, x0
	mov	x0, x21
	bl	_snd_pcm_plug_client_size
	mul	x0, x0, x25
	bl	_ld2
	lsl	w8, w26, w0
	sxtw	x8, w8
	cmp	x22, x8
	csel	x22, x22, x8, lo
	mov	x0, x21
	bl	_oss_substream
	ldr	w8, [x0, #4]
	cmp	w8, #2
	b.lt	LBB0_15
; %bb.14:
	mov	x0, x21
	bl	_oss_substream
	ldrsw	x23, [x0, #4]
	b	LBB0_16
LBB0_15:
	udiv	x23, x24, x22
LBB0_16:
Lloh5:
	adrp	x25, _SNDRV_PCM_HW_PARAM_PERIODS@GOTPAGE
Lloh6:
	ldr	x25, [x25, _SNDRV_PCM_HW_PARAM_PERIODS@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x20
	mov	x2, #0
	bl	_snd_pcm_hw_param_value_max
	mov	x21, x0
	mov	x0, x19
	bl	_oss_runtime
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_19
; %bb.17:
	mov	x0, x19
	bl	_oss_runtime
	ldr	x8, [x0, #16]
	cmp	x21, x8
	b.ls	LBB0_19
; %bb.18:
	mov	x0, x19
	bl	_oss_runtime
	ldr	x21, [x0, #16]
LBB0_19:
	cmp	x23, x21
	csel	x21, x23, x21, lo
	ldr	w1, [x25]
	mov	x0, x20
	mov	x2, #0
	bl	_snd_pcm_hw_param_value_min
	cmp	x0, x21
	csel	x8, x0, x21, hi
	mov	w9, #2
	cmp	x8, #2
	csel	x20, x8, x9, hi
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	mov	x21, x22
	mul	x8, x22, x20
	lsr	x22, x22, #1
	cmp	x8, x24
	b.hi	LBB0_20
; %bb.21:
	cmp	x21, #15
	b.hi	LBB0_23
; %bb.22:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_24
LBB0_23:
	mov	x0, x19
	bl	_oss_runtime
	str	x21, [x0, #24]
	mov	x0, x19
	bl	_oss_runtime
	mov	w8, #1
	str	w8, [x0, #32]
	mov	x0, x19
	bl	_oss_runtime
	mov	x8, x0
	mov	w0, #0
	str	x20, [x8, #40]
LBB0_24:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_HW_PARAM_BUFFER_SIZE,4,2 ; @SNDRV_PCM_HW_PARAM_BUFFER_SIZE
	.comm	_SNDRV_PCM_HW_PARAM_PERIOD_SIZE,4,2 ; @SNDRV_PCM_HW_PARAM_PERIOD_SIZE
	.comm	_SNDRV_PCM_HW_PARAM_PERIODS,4,2 ; @SNDRV_PCM_HW_PARAM_PERIODS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_snd_pcm_oss_period_size
.subsections_via_symbols
