	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_pcm_plug_slave_format      ## -- Begin function snd_pcm_plug_slave_format
	.p2align	4, 0x90
_snd_pcm_plug_slave_format:             ## @snd_pcm_plug_slave_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %r12d
	movq	%rsi, %rdi
	movl	%r12d, %esi
	callq	_snd_mask_test
	testq	%rax, %rax
	jne	LBB0_15
## %bb.1:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_snd_pcm_plug_formats
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	movl	%r12d, %edi
	callq	_snd_pcm_format_linear
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edi
	callq	_snd_pcm_format_width
	movl	%eax, %r15d
	movl	%r12d, %edi
	callq	_snd_pcm_format_unsigned
	xorl	%r13d, %r13d
	testl	%eax, %eax
	setg	%r14b
	movl	%r12d, %edi
	callq	_snd_pcm_format_big_endian
	xorl	%ebx, %ebx
	testl	%eax, %eax
	setg	%r12b
	movq	_preferred_formats@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_9
## %bb.4:
	movb	%r14b, %r13b
	movb	%r12b, %bl
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	%r15, %rax
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	leal	32(%r15), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$-1, %r12d
	xorl	%r15d, %r15d
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	movl	%r13d, %r14d
	movq	_preferred_formats@GOTPCREL(%rip), %rbx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_preferred_formats@GOTPCREL(%rip), %rbx
	incq	%r15
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r15
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movl	(%rax,%r15,4), %r13d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_snd_mask_test
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r13d, %edi
	callq	_snd_pcm_format_width
	movl	%eax, %ebx
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	subl	%ebx, %eax
	subl	-64(%rbp), %ebx                 ## 4-byte Folded Reload
	cmovbl	%eax, %ebx
	movl	%r13d, %edi
	callq	_snd_pcm_format_unsigned
	movl	%r12d, -56(%rbp)                ## 4-byte Spill
	movl	%r14d, %r12d
	xorl	%r14d, %r14d
	cmpl	%r12d, %eax
	setne	%r14b
	addl	%ebx, %r14d
	movl	%r13d, %edi
	callq	_snd_pcm_format_big_endian
	xorl	%ecx, %ecx
	cmpl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	setne	%cl
	addl	%r14d, %ecx
	movl	%r12d, %r14d
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, %ecx
	cmovbl	%ecx, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmovbl	%r13d, %r12d
	jmp	LBB0_7
LBB0_8:
	testl	%r12d, %r12d
	jns	LBB0_15
	jmp	LBB0_9
LBB0_10:
	cmpl	$128, %r12d
	jne	LBB0_9
## %bb.11:
	movq	_preferred_formats@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_9
## %bb.12:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax,%rbx,4), %r12d
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_snd_mask_test
	testq	%rax, %rax
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%rbx
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_14
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_15:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_preferred_formats,8,3          ## @preferred_formats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_pcm_plug_slave_format      ; -- Begin function snd_pcm_plug_slave_format
	.p2align	2
_snd_pcm_plug_slave_format:             ; @snd_pcm_plug_slave_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	mov	x1, x20
	bl	_snd_mask_test
	cbnz	x0, LBB0_15
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_snd_pcm_plug_formats
	cbz	w0, LBB0_14
; %bb.2:
	mov	x0, x20
	bl	_snd_pcm_format_linear
	cbz	x0, LBB0_9
; %bb.3:
	mov	x0, x20
	bl	_snd_pcm_format_width
	mov	x23, x0
	mov	x0, x20
	bl	_snd_pcm_format_unsigned
	cmp	w0, #0
	cset	w8, gt
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	x0, x20
	bl	_snd_pcm_format_big_endian
	cmp	w0, #0
	cset	w24, gt
Lloh0:
	adrp	x25, _preferred_formats@GOTPAGE
Lloh1:
	ldr	x25, [x25, _preferred_formats@GOTPAGEOFF]
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_14
; %bb.4:
	mov	x26, #0
	add	w27, w23, #32
	mov	w20, #-1
	mov	w28, #-1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x26, x26, #1
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	cmp	x26, w0, sxtw
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	w22, [x8, x26, lsl #2]
	mov	x0, x19
	mov	x1, x22
	bl	_snd_mask_test
	cbz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_snd_pcm_format_width
	sub	w8, w27, w0
	subs	w9, w0, w23
	csel	w21, w8, w9, lo
	mov	x0, x22
	bl	_snd_pcm_format_unsigned
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w0, w8
	cinc	w21, w21, ne
	mov	x0, x22
	bl	_snd_pcm_format_big_endian
	cmp	w0, w24
	cinc	w8, w21, ne
	cmp	w8, w28
	csel	w28, w8, w28, lo
	csel	w20, w22, w20, lo
	b	LBB0_5
LBB0_8:
	tbz	w20, #31, LBB0_15
	b	LBB0_14
LBB0_9:
	cmp	w20, #128
	b.ne	LBB0_14
; %bb.10:
Lloh2:
	adrp	x21, _preferred_formats@GOTPAGE
Lloh3:
	ldr	x21, [x21, _preferred_formats@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_14
; %bb.11:
	mov	x22, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w20, [x8, x22, lsl #2]
	mov	x0, x19
	mov	x1, x20
	bl	_snd_mask_test
	cbnz	x0, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x22, x22, #1
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.lt	LBB0_12
LBB0_14:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_preferred_formats,8,3          ; @preferred_formats
.subsections_via_symbols
