	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getsamplerate
_getsamplerate:                         ## @getsamplerate
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_CMDRET_ZERO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movb	(%rsi), %al
	xorl	%ebx, %ebx
	movl	$0, %r13d
	cmpb	$-1, %al
	je	LBB0_5
## %bb.1:
	movzbl	%al, %esi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_SEND_RSRC
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movzbl	(%r15), %esi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_SEND_RSRC
	testq	%rax, %rax
	jne	LBB0_3
LBB0_4:
	movq	-48(%rbp), %rax
	movl	8(%rax), %r13d
	imull	4(%rax), %r13d
	addl	12(%rax), %r13d
	shrl	$16, %r13d
LBB0_5:
	movb	1(%r15), %al
	cmpb	$-1, %al
	je	LBB0_9
## %bb.6:
	movzbl	%al, %esi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_SEND_RSRC
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movzbl	1(%r15), %esi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_SEND_RSRC
	testq	%rax, %rax
	je	LBB0_8
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_8:
	movq	-48(%rbp), %rax
	movl	8(%rax), %ebx
	imull	4(%rax), %ebx
	addl	12(%rax), %ebx
	shrl	$16, %ebx
LBB0_9:
	testl	%r13d, %r13d
	je	LBB0_10
## %bb.11:
	cmpl	%r13d, %ebx
	je	LBB0_13
## %bb.12:
	movzbl	%r13b, %esi
	movzbl	%bl, %edx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_snd_printdd
	jmp	LBB0_13
LBB0_10:
	movl	%ebx, %r13d
LBB0_13:
	movl	%r13d, (%r14)
	movzbl	(%r15), %esi
	movzbl	1(%r15), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_snd_printdd
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMDRET_ZERO,8,3                ## @CMDRET_ZERO
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rates differ %d %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"getsampleformat %d %d %d\n"

	.no_dead_strip	_getsamplerate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getsamplerate
_getsamplerate:                         ; @getsamplerate
	.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, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _CMDRET_ZERO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMDRET_ZERO@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldrb	w1, [x1]
	cmp	w1, #255
	b.eq	LBB0_4
; %bb.1:
	add	x2, sp, #8
	mov	x0, x21
	bl	_SEND_RSRC
	cbz	x0, LBB0_3
; %bb.2:
	ldrb	w1, [x19]
	add	x2, sp, #8
	mov	x0, x21
	bl	_SEND_RSRC
	cbnz	x0, LBB0_8
LBB0_3:
	ldr	x8, [sp, #8]
	ldp	w9, w10, [x8, #4]
	ldr	w8, [x8, #12]
	madd	w8, w10, w9, w8
	lsr	w22, w8, #16
	b	LBB0_5
LBB0_4:
	mov	w22, #0
LBB0_5:
	ldrb	w1, [x19, #1]
	cmp	w1, #255
	b.eq	LBB0_9
; %bb.6:
	add	x2, sp, #8
	mov	x0, x21
	bl	_SEND_RSRC
	cbz	x0, LBB0_12
; %bb.7:
	ldrb	w1, [x19, #1]
	add	x2, sp, #8
	mov	x0, x21
	bl	_SEND_RSRC
	cbz	x0, LBB0_12
LBB0_8:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_9:
	mov	w8, #0
	cbz	w22, LBB0_13
LBB0_10:
	cmp	w8, w22
	b.eq	LBB0_14
; %bb.11:
	and	w1, w22, #0xff
	and	w2, w8, #0xff
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_snd_printdd
	b	LBB0_14
LBB0_12:
	ldr	x8, [sp, #8]
	ldp	w9, w10, [x8, #4]
	ldr	w8, [x8, #12]
	madd	w8, w10, w9, w8
	lsr	w8, w8, #16
	cbnz	w22, LBB0_10
LBB0_13:
	mov	x22, x8
LBB0_14:
	str	w22, [x20]
	ldrb	w1, [x19]
	ldrb	w2, [x19, #1]
	str	x22, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_snd_printdd
	mov	w0, #0
LBB0_15:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CMDRET_ZERO,8,3                ; @CMDRET_ZERO
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rates differ %d %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"getsampleformat %d %d %d\n"

	.no_dead_strip	_getsamplerate
.subsections_via_symbols
