	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function creg_queue_cmd
_creg_queue_cmd:                        ## @creg_queue_cmd
	.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	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, %r13
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %r15
	movl	24(%rdi), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	cmpq	$0, 16(%r15)
	je	LBB0_5
## %bb.4:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_MAX_CREG_DATA8@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	cmpl	%ebx, (%rax)
	jb	LBB0_1
## %bb.6:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	_creg_cmd_pool@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmem_cache_alloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rdi
	addq	$16, %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %r15
	callq	_INIT_LIST_HEAD
	movl	%r12d, (%r15)
	movl	%r14d, 4(%r15)
	movl	%ebx, 8(%r15)
	movq	%r13, 48(%r15)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 12(%r15)
	movl	16(%rbp), %eax
	movl	%eax, 40(%r15)
	movq	24(%rbp), %rax
	movq	%rax, 32(%r15)
	movq	$0, 24(%r15)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	leaq	8(%rbx), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_list_add_tail
	incl	4(%rbx)
	movq	%rbx, %rdi
	callq	_creg_kick_queue
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_MAX_CREG_DATA8,4,2             ## @MAX_CREG_DATA8
	.comm	_creg_cmd_pool,4,2              ## @creg_cmd_pool
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_creg_queue_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function creg_queue_cmd
_creg_queue_cmd:                        ; @creg_queue_cmd
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x7
	mov	x21, x6
	mov	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x25, x2
	mov	x26, x1
	mov	x19, x0
	ldr	w0, [x0, #24]
	bl	_unlikely
	cbz	x0, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
; %bb.3:
Lloh2:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh4:
	adrp	x8, _MAX_CREG_DATA8@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MAX_CREG_DATA8@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w8, w24
	b.lo	LBB0_1
; %bb.7:
Lloh7:
	adrp	x8, _creg_cmd_pool@GOTPAGE
Lloh8:
	ldr	x8, [x8, _creg_cmd_pool@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_kmem_cache_alloc
	cbz	x0, LBB0_9
; %bb.8:
	mov	x27, x0
	add	x28, x0, #16
	mov	x0, x28
	bl	_INIT_LIST_HEAD
	stp	w26, w25, [x27]
	str	x23, [x27, #48]
	stp	w24, w22, [x27, #8]
	str	w21, [x27, #40]
	stp	xzr, x20, [x27, #24]
	mov	x0, x19
	bl	_spin_lock_bh
	add	x1, x19, #8
	mov	x0, x28
	bl	_list_add_tail
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_creg_kick_queue
	mov	x0, x19
	bl	_spin_unlock_bh
	mov	w0, #0
	b	LBB0_5
LBB0_9:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_MAX_CREG_DATA8,4,2             ; @MAX_CREG_DATA8
	.comm	_creg_cmd_pool,4,2              ; @creg_cmd_pool
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_creg_queue_cmd
.subsections_via_symbols
