	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_format
_set_format:                            ## @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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_AFMT_QUERY@GOTPCREL(%rip), %rcx
	movq	_audio_devs@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movslq	%edi, %r14
	movq	(%rax,%r14,8), %rax
	cmpl	%esi, (%rcx)
	jne	LBB0_1
## %bb.5:
	movl	8(%rax), %eax
	jmp	LBB0_6
LBB0_1:
	movl	%esi, %ebx
	movl	$0, (%rax)
	testl	%esi, 4(%rax)
	jne	LBB0_4
## %bb.2:
	movq	_AFMT_MU_LAW@GOTPCREL(%rip), %rcx
	movq	_AFMT_U8@GOTPCREL(%rip), %rdx
	cmpl	%ebx, (%rcx)
	movl	(%rdx), %ebx
	jne	LBB0_4
## %bb.3:
	movq	_CNV_MU_LAW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
LBB0_4:
	movq	16(%rax), %rax
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	*(%rax)
	movq	(%r15), %rcx
	movq	(%rcx,%r14,8), %rcx
	movl	%eax, 24(%rcx)
	movl	%ebx, 8(%rcx)
	movl	(%rcx), %eax
	testl	%eax, %eax
	cmovel	%ebx, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AFMT_QUERY,4,2                 ## @AFMT_QUERY
	.comm	_audio_devs,8,3                 ## @audio_devs
	.comm	_AFMT_MU_LAW,4,2                ## @AFMT_MU_LAW
	.comm	_AFMT_U8,4,2                    ## @AFMT_U8
	.comm	_CNV_MU_LAW,4,2                 ## @CNV_MU_LAW
	.no_dead_strip	_set_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_format
_set_format:                            ; @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
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _AFMT_QUERY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AFMT_QUERY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x20, _audio_devs@GOTPAGE
Lloh4:
	ldr	x20, [x20, _audio_devs@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x8, [x8, w0, sxtw #3]
	cmp	w9, w1
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x8, #8]
	b	LBB0_7
LBB0_2:
	sxtw	x21, w0
	str	wzr, [x8]
	ldr	w9, [x8, #4]
	tst	w9, w1
	b.eq	LBB0_4
; %bb.3:
	mov	x19, x1
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x9, _AFMT_MU_LAW@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AFMT_MU_LAW@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _AFMT_U8@GOTPAGE
Lloh9:
	ldr	x10, [x10, _AFMT_U8@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x10]
	cmp	w9, w1
	b.ne	LBB0_6
; %bb.5:
Lloh11:
	adrp	x9, _CNV_MU_LAW@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CNV_MU_LAW@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	str	w9, [x8]
LBB0_6:
	ldr	x8, [x8, #16]
	ldr	x8, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, x19
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8, x21, lsl #3]
	str	w0, [x8, #24]
	str	w19, [x8, #8]
	ldr	w8, [x8]
	cmp	w8, #0
	csel	w0, w19, w8, eq
LBB0_7:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AFMT_QUERY,4,2                 ; @AFMT_QUERY
	.comm	_audio_devs,8,3                 ; @audio_devs
	.comm	_AFMT_MU_LAW,4,2                ; @AFMT_MU_LAW
	.comm	_AFMT_U8,4,2                    ; @AFMT_U8
	.comm	_CNV_MU_LAW,4,2                 ; @CNV_MU_LAW
	.no_dead_strip	_set_format
.subsections_via_symbols
