	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vx_set_format
_vx_set_format:                         ## @vx_set_format
	.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, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_HEADER_FMT_BASE@GOTPCREL(%rip), %rax
	movl	8(%rdx), %edi
	xorl	%r13d, %r13d
	cmpl	$1, (%rdx)
	movl	$0, %ebx
	jne	LBB0_2
## %bb.1:
	movq	_HEADER_FMT_MONO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_2:
	orl	(%rax), %ebx
	callq	_snd_pcm_format_little_endian
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_HEADER_FMT_INTEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_4:
	orl	%r13d, %ebx
	movl	4(%r12), %eax
	leal	-11026(%rax), %ecx
	cmpl	$20973, %ecx                    ## imm = 0x51ED
	ja	LBB0_6
## %bb.5:
	movq	_HEADER_FMT_UPTO32@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	cmpl	$11025, %eax                    ## imm = 0x2B11
	jg	LBB0_9
## %bb.7:
	movq	_HEADER_FMT_UPTO11@GOTPCREL(%rip), %rax
LBB0_8:
	orl	(%rax), %ebx
LBB0_9:
	movl	8(%r12), %edi
	callq	_snd_pcm_format_physical_width
	cmpl	$16, %eax
	je	LBB0_10
## %bb.11:
	cmpl	$24, %eax
	jne	LBB0_14
## %bb.12:
	movq	_HEADER_FMT_24BITS@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_10:
	movq	_HEADER_FMT_16BITS@GOTPCREL(%rip), %rax
LBB0_13:
	orl	(%rax), %ebx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vx_set_stream_format           ## TAILCALL
LBB0_14:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_snd_BUG
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HEADER_FMT_BASE,4,2            ## @HEADER_FMT_BASE
	.comm	_HEADER_FMT_MONO,4,2            ## @HEADER_FMT_MONO
	.comm	_HEADER_FMT_INTEL,4,2           ## @HEADER_FMT_INTEL
	.comm	_HEADER_FMT_UPTO32,4,2          ## @HEADER_FMT_UPTO32
	.comm	_HEADER_FMT_UPTO11,4,2          ## @HEADER_FMT_UPTO11
	.comm	_HEADER_FMT_16BITS,4,2          ## @HEADER_FMT_16BITS
	.comm	_HEADER_FMT_24BITS,4,2          ## @HEADER_FMT_24BITS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vx_set_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vx_set_format
_vx_set_format:                         ; @vx_set_format
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _HEADER_FMT_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HEADER_FMT_BASE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _HEADER_FMT_MONO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HEADER_FMT_MONO@GOTPAGEOFF]
	ldr	w10, [x2]
Lloh5:
	ldr	w9, [x9]
	cmp	w10, #1
	csel	w9, w9, wzr, eq
	orr	w22, w9, w8
	ldr	w0, [x2, #8]
	bl	_snd_pcm_format_little_endian
Lloh6:
	adrp	x8, _HEADER_FMT_INTEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HEADER_FMT_INTEL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w22, w22, w8
	ldr	w8, [x21, #4]
	mov	w9, #-11026
	mov	w10, #20973
	add	w9, w8, w9
	cmp	w9, w10
	b.hi	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _HEADER_FMT_UPTO32@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HEADER_FMT_UPTO32@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	w9, #11025
	cmp	w8, w9
	b.gt	LBB0_5
; %bb.3:
Lloh11:
	adrp	x8, _HEADER_FMT_UPTO11@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HEADER_FMT_UPTO11@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_5:
	ldr	w0, [x21, #8]
	bl	_snd_pcm_format_physical_width
	cmp	w0, #16
	b.eq	LBB0_8
; %bb.6:
	cmp	w0, #24
	b.ne	LBB0_10
; %bb.7:
Lloh13:
	adrp	x8, _HEADER_FMT_24BITS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HEADER_FMT_24BITS@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh15:
	adrp	x8, _HEADER_FMT_16BITS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HEADER_FMT_16BITS@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	orr	w2, w8, w22
	mov	x0, x20
	mov	x1, x19
	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
	b	_vx_set_stream_format
LBB0_10:
	bl	_snd_BUG
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_HEADER_FMT_BASE,4,2            ; @HEADER_FMT_BASE
	.comm	_HEADER_FMT_MONO,4,2            ; @HEADER_FMT_MONO
	.comm	_HEADER_FMT_INTEL,4,2           ; @HEADER_FMT_INTEL
	.comm	_HEADER_FMT_UPTO32,4,2          ; @HEADER_FMT_UPTO32
	.comm	_HEADER_FMT_UPTO11,4,2          ; @HEADER_FMT_UPTO11
	.comm	_HEADER_FMT_16BITS,4,2          ; @HEADER_FMT_16BITS
	.comm	_HEADER_FMT_24BITS,4,2          ; @HEADER_FMT_24BITS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vx_set_format
.subsections_via_symbols
