	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pulse_queue_enqueue
_pulse_queue_enqueue:                   ## @pulse_queue_enqueue
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_pool_get_pulse_elem
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movq	_pulse_allocated@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DFS_POOL_STAT_INC
	movq	_pulse_used@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DFS_POOL_STAT_INC
LBB0_4:
	movq	%rbx, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r14, 8(%rbx)
	leaq	24(%r15), %rsi
	movq	%rbx, %rdi
	callq	_list_add
	incq	(%r15)
	movq	%r14, 16(%r15)
	movq	%r15, %rdi
	callq	_pulse_queue_check_window
	movq	(%r15), %rax
	movl	$1, %ebx
	cmpq	8(%r15), %rax
	jl	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_pulse_queue_dequeue
	jmp	LBB0_6
LBB0_2:
	movq	_pulse_alloc_error@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DFS_POOL_STAT_INC
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_pulse_alloc_error,4,2          ## @pulse_alloc_error
	.comm	_pulse_allocated,4,2            ## @pulse_allocated
	.comm	_pulse_used,4,2                 ## @pulse_used
	.no_dead_strip	_pulse_queue_enqueue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pulse_queue_enqueue
_pulse_queue_enqueue:                   ; @pulse_queue_enqueue
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_pool_get_pulse_elem
	mov	x21, x0
	cbnz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kmalloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x21, x0
Lloh3:
	adrp	x8, _pulse_allocated@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pulse_allocated@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_DFS_POOL_STAT_INC
Lloh6:
	adrp	x8, _pulse_used@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pulse_used@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_DFS_POOL_STAT_INC
LBB0_3:
	mov	x0, x21
	bl	_INIT_LIST_HEAD
	str	x20, [x21, #8]
	add	x1, x19, #24
	mov	x0, x21
	bl	_list_add
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	str	x20, [x19, #16]
	mov	x0, x19
	bl	_pulse_queue_check_window
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.lt	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_pulse_queue_dequeue
LBB0_5:
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh9:
	adrp	x8, _pulse_alloc_error@GOTPAGE
Lloh10:
	ldr	x8, [x8, _pulse_alloc_error@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_DFS_POOL_STAT_INC
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_pulse_alloc_error,4,2          ; @pulse_alloc_error
	.comm	_pulse_allocated,4,2            ; @pulse_allocated
	.comm	_pulse_used,4,2                 ; @pulse_used
	.no_dead_strip	_pulse_queue_enqueue
.subsections_via_symbols
