	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm2835_audio_buffer_should_sleep
_bcm2835_audio_buffer_should_sleep:     ## @bcm2835_audio_buffer_should_sleep
	.cfi_startproc
## %bb.0:
	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	(%rdi), %rax
	movq	_PLAYBACK_PLAYING@GOTPCREL(%rip), %rcx
	movl	$1, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	movl	20(%rdi), %edi
	callq	_sndbuf_getready
	movq	_VCHIQ_AUDIO_PACKET_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_3
## %bb.2:
	leaq	L_str(%rip), %rdi
	callq	_puts
	incl	16(%rbx)
	jmp	LBB0_4
LBB0_3:
	xorl	%r14d, %r14d
	cmpq	%rcx, 8(%rbx)
	setl	%r14b
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PLAYBACK_PLAYING,8,3           ## @PLAYBACK_PLAYING
	.comm	_VCHIQ_AUDIO_PACKET_SIZE,8,3    ## @VCHIQ_AUDIO_PACKET_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"starve"

	.no_dead_strip	_bcm2835_audio_buffer_should_sleep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm2835_audio_buffer_should_sleep
_bcm2835_audio_buffer_should_sleep:     ; @bcm2835_audio_buffer_should_sleep
	.cfi_startproc
; %bb.0:
	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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PLAYBACK_PLAYING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PLAYBACK_PLAYING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #20]
	bl	_sndbuf_getready
Lloh3:
	adrp	x8, _VCHIQ_AUDIO_PACKET_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VCHIQ_AUDIO_PACKET_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_4
; %bb.2:
Lloh6:
	adrp	x0, l_str@PAGE
Lloh7:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
LBB0_3:
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	ldr	x9, [x19, #8]
	cmp	x9, x8
	cset	w0, lt
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PLAYBACK_PLAYING,8,3           ; @PLAYBACK_PLAYING
	.comm	_VCHIQ_AUDIO_PACKET_SIZE,8,3    ; @VCHIQ_AUDIO_PACKET_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"starve"

	.no_dead_strip	_bcm2835_audio_buffer_should_sleep
.subsections_via_symbols
