	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_dma
_setup_dma:                             ## @setup_dma
	.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	(%rdi), %r14
	movq	8(%rdi), %r15
	movq	24(%r14), %rbx
	movq	_ssi_dma_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	%rdi, 40(%rbx)
	movl	16(%r14), %eax
	movl	%eax, 32(%rbx)
	movq	8(%r14), %rax
	movl	(%rax), %edi
	callq	_rman_get_start
	movq	_SSI_STX0@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, 24(%rbx)
	movl	4(%r14), %eax
	movl	%eax, 16(%rbx)
	movl	(%r15), %edi
	callq	_sndbuf_getblksz
	movl	%eax, 12(%rbx)
	movl	(%r15), %edi
	callq	_sndbuf_getblkcnt
	movl	%eax, 8(%rbx)
	movl	(%r15), %edi
	callq	_sndbuf_getfmt
	movq	_AFMT_16BIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	movl	$16, (%rbx)
	movq	_CMD_2BYTES@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	_AFMT_24BIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movl	$24, (%rbx)
	movq	_CMD_3BYTES@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_device_printf
	movl	$-1, %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_ssi_dma_intr,4,2               ## @ssi_dma_intr
	.comm	_SSI_STX0,8,3                   ## @SSI_STX0
	.comm	_AFMT_16BIT,4,2                 ## @AFMT_16BIT
	.comm	_CMD_2BYTES,4,2                 ## @CMD_2BYTES
	.comm	_AFMT_24BIT,4,2                 ## @AFMT_24BIT
	.comm	_CMD_3BYTES,4,2                 ## @CMD_3BYTES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown format\n"

	.no_dead_strip	_setup_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_dma
_setup_dma:                             ; @setup_dma
	.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
	ldp	x20, x21, [x0]
	ldr	x19, [x20, #24]
Lloh0:
	adrp	x8, _ssi_dma_intr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ssi_dma_intr@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #48]
	str	x0, [x19, #40]
	ldr	w8, [x20, #16]
	str	w8, [x19, #32]
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_rman_get_start
Lloh3:
	adrp	x8, _SSI_STX0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSI_STX0@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x8, x8, x0
	str	x8, [x19, #24]
	ldr	w8, [x20, #4]
	str	w8, [x19, #16]
	ldr	w0, [x21]
	bl	_sndbuf_getblksz
	str	w0, [x19, #12]
	ldr	w0, [x21]
	bl	_sndbuf_getblkcnt
	str	w0, [x19, #8]
	ldr	w0, [x21]
	bl	_sndbuf_getfmt
Lloh6:
	adrp	x8, _AFMT_16BIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AFMT_16BIT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #0
	mov	w8, #16
	str	w8, [x19]
Lloh9:
	adrp	x8, _CMD_2BYTES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CMD_2BYTES@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh11:
	adrp	x8, _AFMT_24BIT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AFMT_24BIT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.3:
	mov	w0, #0
	mov	w8, #24
	str	w8, [x19]
Lloh14:
	adrp	x8, _CMD_3BYTES@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CMD_3BYTES@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_5:
	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
LBB0_6:
	ldr	w0, [x20]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_device_printf
	mov	w0, #-1
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ssi_dma_intr,4,2               ; @ssi_dma_intr
	.comm	_SSI_STX0,8,3                   ; @SSI_STX0
	.comm	_AFMT_16BIT,4,2                 ; @AFMT_16BIT
	.comm	_CMD_2BYTES,4,2                 ; @CMD_2BYTES
	.comm	_AFMT_24BIT,4,2                 ; @AFMT_24BIT
	.comm	_CMD_3BYTES,4,2                 ; @CMD_3BYTES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown format\n"

	.no_dead_strip	_setup_dma
.subsections_via_symbols
