	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sl_alloc_bufs
_sl_alloc_bufs:                         ## @sl_alloc_bufs
	.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
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r12
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	leal	(%rsi,%rsi), %eax
	cmpl	$1153, %eax                     ## imm = 0x481
	movl	$1152, %ecx                     ## imm = 0x480
	cmovael	%eax, %ecx
	movslq	%ecx, %r14
	leaq	4(%r14), %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r13
	leaq	16(%r12), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	cmpq	$0, 72(%r12)
	je	LBB0_6
## %bb.3:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, (%r12)
	movq	%r14, 8(%r12)
	leaq	52(%r12), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%r12)
	movq	%r15, %rsi
	callq	_xchg
	movq	%rax, %r15
	addq	$48, %r12
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_xchg
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_4:
	xorl	%r15d, %r15d
LBB0_5:
	xorl	%r13d, %r13d
	jmp	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movq	%r13, %rdi
	callq	_kfree
	movq	%r15, %rdi
	callq	_kfree
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_sl_alloc_bufs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sl_alloc_bufs
_sl_alloc_bufs:                         ; @sl_alloc_bufs
	.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	x23, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	lsl	w8, w1, #1
	mov	w9, #1152
	cmp	w8, #1152
	csel	w8, w8, w9, hi
	sxtw	x24, w8
	add	x20, x24, #4
Lloh3:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x20
	bl	_kmalloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w1, [x25]
	mov	x0, x20
	bl	_kmalloc
	mov	x20, x0
	cbz	x0, LBB0_6
; %bb.2:
	add	x21, x22, #16
	mov	x0, x21
	bl	_spin_lock_bh
	ldr	x8, [x22, #72]
	cbz	x8, LBB0_5
; %bb.3:
	str	w23, [x22]
	str	x24, [x22, #8]
	add	x0, x22, #52
	stp	xzr, xzr, [x22, #56]
	mov	x1, x19
	bl	_xchg
	mov	x19, x0
	add	x0, x22, #48
	mov	x1, x20
	bl	_xchg
	mov	x20, x0
	mov	x0, x21
	bl	_spin_unlock_bh
	mov	w21, #0
	b	LBB0_6
LBB0_4:
	mov	x20, #0
	b	LBB0_6
LBB0_5:
	mov	x0, x21
	bl	_spin_unlock_bh
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x20
	bl	_kfree
	mov	x0, x19
	bl	_kfree
	mov	x0, x21
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_sl_alloc_bufs
.subsections_via_symbols
