	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smp_request_block
_smp_request_block:                     ## @smp_request_block
	.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
	movl	%ecx, %ebx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	8(%rsi), %rax
	movq	(%rax,%rdx,8), %r15
	movl	(%rdi), %r12d
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_bitmap_weight
	xorl	%edi, %edi
	testl	%eax, %eax
	setg	%dil
	callq	_WARN_ON
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	16(%r13), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %r13
	testq	%r13, %r13
	je	LBB0_2
## %bb.1:
	movslq	%ebx, %rsi
	subq	%r13, %rsi
	xorl	%edi, %edi
	callq	_max
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movq	%r13, %rdx
	callq	_DBG
LBB0_2:
	movq	(%r14), %rdi
	movl	%r12d, %esi
	callq	_bitmap_weight
	movl	%r12d, %ecx
	subl	%eax, %ecx
	cmpl	%ecx, %ebx
	jle	LBB0_3
## %bb.7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_DRM_DEV_ERROR
	movq	_ENOSPC@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_3:
	xorl	%eax, %eax
	testl	%ebx, %ebx
	jle	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movl	%r12d, %esi
	callq	_find_first_zero_bit
	movl	%eax, %r13d
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_set_bit
	movq	(%r14), %rsi
	movl	%r13d, %edi
	callq	_set_bit
	decl	%ebx
	jne	LBB0_4
## %bb.5:
	xorl	%eax, %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d MMBs allocated (%d reserved)"

L_.str.1:                               ## @.str.1
	.asciz	"out of blks (req=%d > avail=%d)\n"

	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.no_dead_strip	_smp_request_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smp_request_block
_smp_request_block:                     ; @smp_request_block
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x20, x1
	mov	x23, x0
	ldr	x8, [x1, #8]
	lsl	x24, x2, #3
	ldr	x21, [x8, x24]
	ldr	w22, [x0]
	mov	x0, x21
	mov	x1, x22
	bl	_bitmap_weight
	cmp	w0, #0
	cset	w0, gt
	bl	_WARN_ON
	ldr	x8, [x23, #16]
	ldr	x24, [x8, x24]
	cbz	x24, LBB0_2
; %bb.1:
	sxtw	x8, w19
	sub	x1, x8, x24
	mov	w0, #0
	bl	_max
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x24
	bl	_DBG
LBB0_2:
	ldr	x0, [x20]
	mov	x1, x22
	bl	_bitmap_weight
	sub	w3, w22, w0
	cmp	w19, w3
	b.le	LBB0_4
; %bb.3:
	ldr	x8, [x23, #8]
	ldr	w0, [x8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_DRM_DEV_ERROR
Lloh4:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_4:
	cmp	w19, #1
	b.lt	LBB0_6
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	mov	x1, x22
	bl	_find_first_zero_bit
	mov	x23, x0
	mov	x1, x21
	bl	_set_bit
	ldr	x1, [x20]
	mov	x0, x23
	bl	_set_bit
	subs	w19, w19, #1
	b.ne	LBB0_5
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d MMBs allocated (%d reserved)"

l_.str.1:                               ; @.str.1
	.asciz	"out of blks (req=%d > avail=%d)\n"

	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.no_dead_strip	_smp_request_block
.subsections_via_symbols
