	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wavefront_send_multisample
_wavefront_send_multisample:            ## @wavefront_send_multisample
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rdi
	movq	%rax, %rsi
	movl	$2, %edx
	callq	_munge_int32
	movb	8(%r13), %cl
	movb	%cl, 2(%rbx)
	andb	$7, %cl
	movl	$1, %r12d
	shlq	%cl, %r12
	movq	_WF_DEBUG_LOAD_PATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %edx
	movslq	8(%r13), %rcx
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_DPRINT
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	addq	$3, %rbx
	leaq	L_.str.1(%rip), %r15
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_WF_DEBUG_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_WF_DEBUG_LOAD_PATCH@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	16(%r13), %rax
	movq	(%rax,%r14,8), %rcx
	movq	%r15, %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_DPRINT
	movq	16(%r13), %rax
	movq	(%rax,%r14,8), %rdi
	movq	%rbx, %rsi
	movl	$2, %edx
	callq	_munge_int32
	incq	%r14
	addq	$2, %rbx
	cmpq	%r14, %r12
	jne	LBB0_4
## %bb.5:
	movq	_WFC_DOWNLOAD_MULTISAMPLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	(%r12,%r12), %edx
	addl	$3, %edx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_snd_wavefront_cmd
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	callq	_snd_printk
	movq	%rbx, %rdi
	callq	_kfree
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_7:
	movq	_WF_SLOT_FILLED@GOTPCREL(%rip), %rax
	movq	_WF_ST_MULTISAMPLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	(%r14), %rax
	movq	(%r13), %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%eax, %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WF_DEBUG_LOAD_PATCH,4,2        ## @WF_DEBUG_LOAD_PATCH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"multi %d with %d=%d samples\n"

	.comm	_WF_DEBUG_DATA,4,2              ## @WF_DEBUG_DATA
L_.str.1:                               ## @.str.1
	.asciz	"sample[%d] = %d\n"

	.comm	_WFC_DOWNLOAD_MULTISAMPLE,4,2   ## @WFC_DOWNLOAD_MULTISAMPLE
L_.str.2:                               ## @.str.2
	.asciz	"download of multisample failed.\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_WF_SLOT_FILLED,4,2             ## @WF_SLOT_FILLED
	.comm	_WF_ST_MULTISAMPLE,4,2          ## @WF_ST_MULTISAMPLE
	.no_dead_strip	_wavefront_send_multisample
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wavefront_send_multisample
_wavefront_send_multisample:            ; @wavefront_send_multisample
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kmalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x0, [x20]
	mov	x1, x19
	mov	w2, #2
	bl	_munge_int32
	ldr	w8, [x20, #8]
	and	x9, x8, #0x7
	mov	w10, #1
	lsl	x25, x10, x9
	strb	w8, [x19, #2]
Lloh3:
	adrp	x26, _WF_DEBUG_LOAD_PATCH@GOTPAGE
Lloh4:
	ldr	x26, [x26, _WF_DEBUG_LOAD_PATCH@GOTPAGEOFF]
	ldr	w0, [x26]
	ldr	w2, [x20]
	ldrsw	x3, [x20, #8]
	str	x25, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DPRINT
	mov	x22, #0
	add	x23, x19, #3
Lloh7:
	adrp	x27, _WF_DEBUG_DATA@GOTPAGE
Lloh8:
	ldr	x27, [x27, _WF_DEBUG_DATA@GOTPAGEOFF]
Lloh9:
	adrp	x24, l_.str.1@PAGE
Lloh10:
	add	x24, x24, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w0, w9, w8
	ldr	x8, [x20, #16]
	lsl	x28, x22, #3
	ldr	x3, [x8, x28]
	mov	x1, x24
	mov	x2, x22
	bl	_DPRINT
	ldr	x8, [x20, #16]
	ldr	x0, [x8, x28]
	mov	x1, x23
	mov	w2, #2
	bl	_munge_int32
	add	x22, x22, #1
	add	x23, x23, #2
	cmp	x25, x22
	b.ne	LBB0_2
; %bb.3:
Lloh11:
	adrp	x8, _WFC_DOWNLOAD_MULTISAMPLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WFC_DOWNLOAD_MULTISAMPLE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	lsl	w8, w25, #1
	add	w2, w8, #3
	mov	x0, x21
	mov	x3, x19
	bl	_snd_wavefront_cmd
	cbz	x0, LBB0_7
; %bb.4:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_snd_printk
	mov	x0, x19
	bl	_kfree
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
Lloh20:
	adrp	x8, _WF_SLOT_FILLED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _WF_SLOT_FILLED@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _WF_ST_MULTISAMPLE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _WF_ST_MULTISAMPLE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	x9, [x21]
	ldr	x10, [x20]
	str	w8, [x9, x10, lsl #2]
	mov	x0, x19
	bl	_kfree
	mov	w0, #0
LBB0_8:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WF_DEBUG_LOAD_PATCH,4,2        ; @WF_DEBUG_LOAD_PATCH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"multi %d with %d=%d samples\n"

	.comm	_WF_DEBUG_DATA,4,2              ; @WF_DEBUG_DATA
l_.str.1:                               ; @.str.1
	.asciz	"sample[%d] = %d\n"

	.comm	_WFC_DOWNLOAD_MULTISAMPLE,4,2   ; @WFC_DOWNLOAD_MULTISAMPLE
l_.str.2:                               ; @.str.2
	.asciz	"download of multisample failed.\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_WF_SLOT_FILLED,4,2             ; @WF_SLOT_FILLED
	.comm	_WF_ST_MULTISAMPLE,4,2          ; @WF_ST_MULTISAMPLE
	.no_dead_strip	_wavefront_send_multisample
.subsections_via_symbols
