	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsp_set_format
_dsp_set_format:                        ## @dsp_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
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_dev@GOTPCREL(%rip), %rax
	movq	8(%rax), %rbx
	movq	_DAPQ_DATA_BUFF@GOTPCREL(%rip), %rcx
	movq	_DARQ_DATA_BUFF@GOTPCREL(%rip), %rax
	movl	%esi, %edx
	andl	$-2, %edx
	cmpl	$128, %edx
	je	LBB0_2
## %bb.1:
	movq	_DEFSAMPLESIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r15d
LBB0_2:
	movq	(%rcx), %r12
	addq	%rbx, %r12
	addq	(%rax), %rbx
	movl	(%r14), %eax
	movq	_FMODE_WRITE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_DAQDS_wSampleSize@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r12, %rsi
	movl	%r15d, %edi
	callq	_writew
	movl	(%r14), %eax
LBB0_4:
	movq	_FMODE_READ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_DAQDS_wSampleSize@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movl	%r15d, %edi
	callq	_writew
	movl	(%r14), %eax
LBB0_6:
	movq	_DAQDS__size@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
	addq	%r13, %r12
	movq	_FMODE_WRITE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movq	_DAQDS_wSampleSize@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r12, %rsi
	movl	%r15d, %edi
	callq	_writew
	movl	(%r14), %eax
LBB0_8:
	addq	%rbx, %r13
	movq	_FMODE_READ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	movq	_DAQDS_wSampleSize@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r13, %rsi
	movl	%r15d, %edi
	callq	_writew
	movl	(%r14), %eax
LBB0_10:
	movq	_DAQDS__size@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	movq	_FMODE_WRITE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.11:
	addq	%rbx, %r12
	movq	_DAQDS_wSampleSize@GOTPCREL(%rip), %rax
	addq	(%rax), %r12
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_writew
	movl	(%r14), %eax
LBB0_12:
	movq	_FMODE_READ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.13:
	addq	%r13, %rbx
	movq	_DAQDS_wSampleSize@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_writew
	movl	(%r14), %eax
LBB0_14:
	movq	_FMODE_WRITE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	_dev@GOTPCREL(%rip), %rcx
	je	LBB0_16
## %bb.15:
	movl	%r15d, (%rcx)
LBB0_16:
	movq	_FMODE_READ@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_18
## %bb.17:
	movl	%r15d, 4(%rcx)
LBB0_18:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dev,16,3                       ## @dev
	.comm	_DAPQ_DATA_BUFF,8,3             ## @DAPQ_DATA_BUFF
	.comm	_DARQ_DATA_BUFF,8,3             ## @DARQ_DATA_BUFF
	.comm	_DEFSAMPLESIZE,4,2              ## @DEFSAMPLESIZE
	.comm	_FMODE_WRITE,4,2                ## @FMODE_WRITE
	.comm	_DAQDS_wSampleSize,8,3          ## @DAQDS_wSampleSize
	.comm	_FMODE_READ,4,2                 ## @FMODE_READ
	.comm	_DAQDS__size,8,3                ## @DAQDS__size
	.no_dead_strip	_dsp_set_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsp_set_format
_dsp_set_format:                        ; @dsp_set_format
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x0
Lloh0:
	adrp	x21, _dev@GOTPAGE
Lloh1:
	ldr	x21, [x21, _dev@GOTPAGEOFF]
	ldr	x24, [x21, #8]
Lloh2:
	adrp	x8, _DAPQ_DATA_BUFF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DAPQ_DATA_BUFF@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x25, x8, x24
Lloh5:
	adrp	x8, _DARQ_DATA_BUFF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DARQ_DATA_BUFF@GOTPAGEOFF]
Lloh7:
	ldr	x26, [x8]
	and	w8, w1, #0xfffffffe
Lloh8:
	adrp	x9, _DEFSAMPLESIZE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DEFSAMPLESIZE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, #128
	csel	w19, w1, w9, eq
	ldr	w8, [x0]
Lloh11:
	adrp	x22, _FMODE_WRITE@GOTPAGE
Lloh12:
	ldr	x22, [x22, _FMODE_WRITE@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh13:
	adrp	x23, _DAQDS_wSampleSize@GOTPAGE
Lloh14:
	ldr	x23, [x23, _DAQDS_wSampleSize@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x23]
	add	x1, x8, x25
	mov	x0, x19
	bl	_writew
	ldr	w8, [x20]
LBB0_2:
	add	x26, x26, x24
Lloh15:
	adrp	x24, _FMODE_READ@GOTPAGE
Lloh16:
	ldr	x24, [x24, _FMODE_READ@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x23]
	add	x1, x8, x26
	mov	x0, x19
	bl	_writew
	ldr	w8, [x20]
LBB0_4:
Lloh17:
	adrp	x27, _DAQDS__size@GOTPAGE
Lloh18:
	ldr	x27, [x27, _DAQDS__size@GOTPAGEOFF]
	ldr	x28, [x27]
	add	x25, x28, x25
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	x8, [x23]
	add	x1, x8, x25
	mov	x0, x19
	bl	_writew
	ldr	w8, [x20]
LBB0_6:
	add	x26, x28, x26
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	x8, [x23]
	add	x1, x8, x26
	mov	x0, x19
	bl	_writew
	ldr	w8, [x20]
LBB0_8:
	ldr	x27, [x27]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	x8, [x23]
	add	x9, x27, x25
	add	x1, x8, x9
	mov	x0, x19
	bl	_writew
	ldr	w8, [x20]
LBB0_10:
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
	ldr	x8, [x23]
	add	x9, x27, x26
	add	x1, x8, x9
	mov	x0, x19
	bl	_writew
	ldr	w8, [x20]
LBB0_12:
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
	str	w19, [x21]
LBB0_14:
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
	str	w19, [x21, #4]
LBB0_16:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_dev,16,3                       ; @dev
	.comm	_DAPQ_DATA_BUFF,8,3             ; @DAPQ_DATA_BUFF
	.comm	_DARQ_DATA_BUFF,8,3             ; @DARQ_DATA_BUFF
	.comm	_DEFSAMPLESIZE,4,2              ; @DEFSAMPLESIZE
	.comm	_FMODE_WRITE,4,2                ; @FMODE_WRITE
	.comm	_DAQDS_wSampleSize,8,3          ; @DAQDS_wSampleSize
	.comm	_FMODE_READ,4,2                 ; @FMODE_READ
	.comm	_DAQDS__size,8,3                ; @DAQDS__size
	.no_dead_strip	_dsp_set_format
.subsections_via_symbols
