	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_gf1_mem_find
_snd_gf1_mem_find:                      ## @snd_gf1_mem_find
	.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
	cmpl	$2, %r8d
	movl	$2, %r12d
	cmovgel	%r8d, %r12d
	xorl	%eax, %eax
	testl	%ecx, %ecx
	movq	_SNDRV_GF1_MEM_BLOCK_16BIT@GOTPCREL(%rip), %rbx
	cmovnel	(%rbx), %ecx
	setne	%al
	movq	8(%rdi,%rax,8), %r13
	cmovel	%r8d, %r12d
	movl	%ecx, 52(%rsi)
	movq	_SNDRV_GF1_MEM_OWNER_DRIVER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rsi)
	movq	$0, 40(%rsi)
	movq	32(%rsi), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rax)
	movups	%xmm0, (%rax)
	movq	$0, 24(%rsi)
	movq	$0, 8(%rsi)
	movl	$0, 16(%rsi)
	movq	(%rdi), %r14
	testq	%r14, %r14
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r14), %rax
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_16
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_7 Depth 2
	movl	(%r14), %edi
	leal	1(%rbx), %ecx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %eax
	movl	(%r13,%rax,8), %r15d
	addl	4(%r13,%rax,8), %r15d
	movl	%ecx, %eax
	incl	%ebx
	leal	1(%rax), %ecx
	cmpl	%r15d, %edi
	jae	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	4(%r14), %edi
	cmpl	%r15d, %edi
	jae	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	decl	%ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, %ecx
	movl	4(%r13,%rcx,8), %r15d
	addl	(%r13,%rcx,8), %r15d
	incl	%eax
	cmpl	%r15d, %edi
	jae	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	decl	%eax
	movl	%eax, %ebx
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rax), %ecx
	cmpl	%ecx, %edi
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r15d, %ecx
	cmovbl	%ecx, %r15d
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, %esi
	callq	_ALIGN
	subl	%eax, %r15d
	jbe	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	jl	LBB0_14
## %bb.29:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%rcx)
	xorl	%eax, %eax
	jmp	LBB0_28
LBB0_1:
	xorl	%ebx, %ebx
LBB0_16:
	leal	1(%rbx), %eax
	cmpl	$3, %eax
	ja	LBB0_27
## %bb.17:
	movl	%eax, %eax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, 4(%r13,%rax,8)
	jae	LBB0_26
## %bb.18:
	leal	2(%rbx), %eax
	cmpl	$3, %eax
	ja	LBB0_27
## %bb.19:
	movl	%edx, %ecx
	movl	%eax, %eax
	cmpl	%ecx, 4(%r13,%rax,8)
	jae	LBB0_26
## %bb.20:
	leal	3(%rbx), %eax
	cmpl	$3, %eax
	ja	LBB0_27
## %bb.21:
	movl	%eax, %eax
	movl	%ecx, %edx
	cmpl	%ecx, 4(%r13,%rax,8)
	jae	LBB0_26
## %bb.22:
	cmpl	$-4, %ebx
	jb	LBB0_27
## %bb.23:
	leal	4(%rbx), %eax
	movl	%ecx, %edx
	cmpl	%ecx, 4(%r13,%rax,8)
	jae	LBB0_26
## %bb.24:
	addl	$5, %ebx
	cmpl	$3, %ebx
	ja	LBB0_27
## %bb.25:
	movl	%ebx, %eax
	movl	%ecx, %edx
LBB0_26:
	movl	(%r13,%rax,8), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	%edx, 4(%rcx)
	xorl	%eax, %eax
	jmp	LBB0_28
LBB0_27:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_28:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_GF1_MEM_BLOCK_16BIT,4,2  ## @SNDRV_GF1_MEM_BLOCK_16BIT
	.comm	_SNDRV_GF1_MEM_OWNER_DRIVER,4,2 ## @SNDRV_GF1_MEM_OWNER_DRIVER
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_snd_gf1_mem_find
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_gf1_mem_find
_snd_gf1_mem_find:                      ; @snd_gf1_mem_find
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	cmp	w4, #2
	ccmp	w3, #0, #4, lt
	mov	w8, #2
	csel	w21, w8, w4, ne
	mov	w8, #8
	mov	w9, #16
Lloh0:
	adrp	x10, _SNDRV_GF1_MEM_BLOCK_16BIT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SNDRV_GF1_MEM_BLOCK_16BIT@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w3, #0
	csel	w10, w10, wzr, ne
	csel	x8, x9, x8, ne
	ldr	x22, [x0, x8]
Lloh3:
	adrp	x8, _SNDRV_GF1_MEM_OWNER_DRIVER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNDRV_GF1_MEM_OWNER_DRIVER@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	w8, w10, [x1, #48]
	str	xzr, [x1, #40]
	ldr	x8, [x1, #32]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x8]
	str	xzr, [x1, #24]
	str	xzr, [x1, #8]
	str	wzr, [x1, #16]
	ldr	x24, [x0]
	cbz	x24, LBB0_13
; %bb.1:
	mov	w23, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x8
	cbz	x8, LBB0_14
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w9, [x24]
	add	w10, w23, #1
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x8, x10
	add	x10, x22, w23, uxtw #3
	ldp	w11, w12, [x10]
	add	w23, w23, #1
	add	w10, w8, #1
	add	w25, w12, w11
	cmp	w9, w25
	b.hs	LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [x24, #4]
	add	w0, w10, w9
	cmp	w0, w25
	b.hs	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w23, w23, #1
	ldr	x8, [x24, #8]
	cbnz	x8, LBB0_9
	b	LBB0_11
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x9, x22, w8, uxtw #3
	ldp	w10, w9, [x9]
	add	w8, w8, #1
	add	w25, w9, w10
	cmp	w0, w25
	b.hs	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w23, w8, #1
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x8]
	cmp	w0, w9
	b.eq	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w9, w25
	csel	w25, w9, w25, lo
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x21
	bl	_ALIGN
	subs	w9, w25, w0
	ccmp	w9, w19, #8, hi
	b.ge	LBB0_25
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24, #8]
	b	LBB0_2
LBB0_13:
	mov	w23, #0
LBB0_14:
	add	w8, w23, #1
	cmp	w8, #3
	b.hi	LBB0_24
; %bb.15:
	add	x9, x22, w8, uxtw #3
	ldr	w9, [x9, #4]
	cmp	w9, w19
	b.hs	LBB0_23
; %bb.16:
	add	w8, w23, #2
	cmp	w8, #3
	b.hi	LBB0_24
; %bb.17:
	add	x9, x22, w8, uxtw #3
	ldr	w9, [x9, #4]
	cmp	w9, w19
	b.hs	LBB0_23
; %bb.18:
	add	w8, w23, #3
	cmp	w8, #3
	b.hi	LBB0_24
; %bb.19:
	add	x9, x22, w8, uxtw #3
	ldr	w9, [x9, #4]
	cmp	w9, w19
	b.hs	LBB0_23
; %bb.20:
	cmn	w23, #4
	b.lo	LBB0_24
; %bb.21:
	add	w8, w23, #4
	add	x9, x22, w8, uxtw #3
	ldr	w9, [x9, #4]
	cmp	w9, w19
	b.hs	LBB0_23
; %bb.22:
	add	w8, w23, #5
	cmp	w8, #3
	b.hi	LBB0_24
LBB0_23:
	mov	w0, #0
	lsl	x8, x8, #3
	ldr	w8, [x22, x8]
	b	LBB0_26
LBB0_24:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_27
LBB0_25:
	mov	x8, x0
	mov	w0, #0
LBB0_26:
	stp	w8, w19, [x20]
LBB0_27:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_GF1_MEM_BLOCK_16BIT,4,2  ; @SNDRV_GF1_MEM_BLOCK_16BIT
	.comm	_SNDRV_GF1_MEM_OWNER_DRIVER,4,2 ; @SNDRV_GF1_MEM_OWNER_DRIVER
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_snd_gf1_mem_find
.subsections_via_symbols
