	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Q40SetFormat
_Q40SetFormat:                          ## @Q40SetFormat
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	leal	-128(%rbx), %eax
	cmpl	$4, %eax
	ja	LBB0_3
## %bb.1:
	cmpl	$2, %eax
	jne	LBB0_4
## %bb.2:
	movq	_dmasound@GOTPCREL(%rip), %rax
	movl	16(%rax), %ebx
	jmp	LBB0_7
LBB0_3:
	movl	$129, %ebx
LBB0_4:
	movq	_dmasound@GOTPCREL(%rip), %rax
	movl	%ebx, 16(%rax)
	movl	$8, 20(%rax)
	movq	(%rax), %rcx
	movq	_SND_DEV_DSP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.5:
	movl	%ebx, 8(%rax)
	movl	$8, 12(%rax)
LBB0_6:
	xorl	%eax, %eax
	callq	_Q40Init
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dmasound,24,3                  ## @dmasound
	.comm	_SND_DEV_DSP,8,3                ## @SND_DEV_DSP
	.no_dead_strip	_Q40SetFormat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Q40SetFormat
_Q40SetFormat:                          ; @Q40SetFormat
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.1:
	mov	x19, x0
	cmp	w8, #2
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _dmasound@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dmasound@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8, #16]
	b	LBB0_7
LBB0_3:
	mov	w19, #129
LBB0_4:
Lloh3:
	adrp	x8, _dmasound@GOTPAGE
Lloh4:
	ldr	x8, [x8, _dmasound@GOTPAGEOFF]
	mov	w9, #8
	stp	w19, w9, [x8, #16]
	ldr	x10, [x8]
Lloh5:
	adrp	x11, _SND_DEV_DSP@GOTPAGE
Lloh6:
	ldr	x11, [x11, _SND_DEV_DSP@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_6
; %bb.5:
	stp	w19, w9, [x8, #8]
LBB0_6:
	bl	_Q40Init
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_dmasound,24,3                  ; @dmasound
	.comm	_SND_DEV_DSP,8,3                ; @SND_DEV_DSP
	.no_dead_strip	_Q40SetFormat
.subsections_via_symbols
