	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_fifo_push_wait              ## -- Begin function hb_fifo_push_wait
	.p2align	4, 0x90
_hb_fifo_push_wait:                     ## @hb_fifo_push_wait
	.cfi_startproc
## %bb.0:
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	12(%rdi), %edi
	callq	_hb_lock
	movl	(%rbx), %eax
	cmpl	4(%rbx), %eax
	jl	LBB0_5
## %bb.2:
	movl	$1, 8(%rbx)
	movq	56(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_hb_cond_broadcast
LBB0_4:
	movl	12(%rbx), %esi
	movl	48(%rbx), %edi
	movq	_FIFO_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_hb_cond_timedwait
	movl	(%rbx), %eax
LBB0_5:
	testl	%eax, %eax
	jle	LBB0_7
## %bb.6:
	movq	32(%rbx), %rcx
	jmp	LBB0_8
LBB0_15:
	retq
LBB0_7:
	leaq	40(%rbx), %rcx
LBB0_8:
	movq	%r14, (%rcx)
	movq	%r14, 32(%rbx)
	incl	%eax
	movl	%eax, (%rbx)
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rdx
	incl	%eax
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_9
## %bb.10:
	movl	%eax, (%rbx)
	movq	%rdx, 32(%rbx)
LBB0_11:
	cmpq	$0, 24(%rbx)
	je	LBB0_14
## %bb.12:
	testl	%eax, %eax
	jle	LBB0_14
## %bb.13:
	movq	$0, 24(%rbx)
	movl	16(%rbx), %edi
	callq	_hb_cond_signal
LBB0_14:
	movl	12(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_hb_unlock                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FIFO_TIMEOUT,4,2               ## @FIFO_TIMEOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_fifo_push_wait              ; -- Begin function hb_fifo_push_wait
	.p2align	2
_hb_fifo_push_wait:                     ; @hb_fifo_push_wait
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_7
; %bb.1:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_remember_state
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #12]
	bl	_hb_lock
	ldp	w8, w9, [x19]
	cmp	w8, w9
	b.lt	LBB0_5
; %bb.2:
	mov	w8, #1
	str	w8, [x19, #8]
	ldr	x0, [x19, #56]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_hb_cond_broadcast
LBB0_4:
	ldr	w0, [x19, #48]
	ldr	w1, [x19, #12]
Lloh0:
	adrp	x8, _FIFO_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FIFO_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_hb_cond_timedwait
	ldr	w8, [x19]
LBB0_5:
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	ldr	x9, [x19, #32]
	b	LBB0_9
LBB0_7:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
LBB0_8:
	.cfi_restore_state
	add	x9, x19, #40
LBB0_9:
	str	x20, [x9]
	str	x20, [x19, #32]
	add	w8, w8, #1
	str	w8, [x19]
	ldr	x9, [x20]
	cbz	x9, LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x10, x9
	add	w8, w8, #1
	ldr	x9, [x9]
	cbnz	x9, LBB0_10
; %bb.11:
	str	w8, [x19]
	str	x10, [x19, #32]
LBB0_12:
	ldr	x9, [x19, #24]
	cmp	x9, #0
	ccmp	w8, #1, #8, ne
	b.lt	LBB0_14
; %bb.13:
	str	xzr, [x19, #24]
	ldr	w0, [x19, #16]
	bl	_hb_cond_signal
LBB0_14:
	ldr	w0, [x19, #12]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hb_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FIFO_TIMEOUT,4,2               ; @FIFO_TIMEOUT
.subsections_via_symbols
