	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm2835_audio_delayed_init
_bcm2835_audio_delayed_init:            ## @bcm2835_audio_delayed_init
	.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	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_SND_STATUSLEN@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	leaq	16(%rbx), %rdi
	callq	_config_intrhook_disestablish
	movq	%rbx, %rdi
	callq	_bcm2835_audio_init
	movq	%rbx, %rdi
	callq	_bcm2835_audio_open
	movl	$75, (%rbx)
	movq	_DEST_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movl	8(%rbx), %edi
	movq	_bcmmixer_class@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdx
	callq	_mixer_init
	movl	8(%rbx), %edi
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_9
## %bb.2:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_4:
	movq	%rbx, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_pcm_register
	movl	8(%rbx), %edi
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_9
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	leaq	-24(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_device_printf                  ## TAILCALL
LBB0_7:
	movq	_PCMDIR_PLAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_bcmchan_class@GOTPCREL(%rip), %rdx
	movq	%rbx, %rcx
	callq	_pcm_addchan
	movl	(%r15), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	callq	_snprintf
	movl	8(%rbx), %edi
	movq	%r14, %rsi
	callq	_pcm_setstatus
	leaq	4(%rbx), %rdi
	callq	_bcm2835_audio_reset_channel
	movq	%rbx, %rdi
	callq	_bcm2835_audio_create_worker
	movq	%rbx, %rdi
	callq	_vchi_audio_sysctl_init
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	leaq	-24(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SND_STATUSLEN,4,2              ## @SND_STATUSLEN
	.comm	_DEST_AUTO,4,2                  ## @DEST_AUTO
	.comm	_bcmmixer_class,4,2             ## @bcmmixer_class
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mixer_init failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"pcm_register failed\n"

	.comm	_PCMDIR_PLAY,4,2                ## @PCMDIR_PLAY
	.comm	_bcmchan_class,4,2              ## @bcmchan_class
L_.str.2:                               ## @.str.2
	.asciz	"at VCHIQ"

	.no_dead_strip	_bcm2835_audio_delayed_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm2835_audio_delayed_init
_bcm2835_audio_delayed_init:            ; @bcm2835_audio_delayed_init
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x21, _SND_STATUSLEN@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SND_STATUSLEN@GOTPAGEOFF]
	ldr	w8, [x21]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	add	x0, x0, #16
	bl	_config_intrhook_disestablish
	mov	x0, x19
	bl	_bcm2835_audio_init
	mov	x0, x19
	bl	_bcm2835_audio_open
	mov	w8, #75
	str	w8, [x19]
Lloh7:
	adrp	x8, _DEST_AUTO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DEST_AUTO@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	ldr	w0, [x19, #8]
Lloh10:
	adrp	x1, _bcmmixer_class@GOTPAGE
Lloh11:
	ldr	x1, [x1, _bcmmixer_class@GOTPAGEOFF]
	mov	x2, x19
	bl	_mixer_init
	mov	x8, x0
	ldr	w0, [x19, #8]
	cbz	x8, LBB0_3
; %bb.1:
	ldur	x8, [x29, #-40]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.2:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_3:
	mov	x1, x19
	mov	w2, #1
	mov	w3, #0
	bl	_pcm_register
	mov	x8, x0
	ldr	w0, [x19, #8]
	cbz	x8, LBB0_7
; %bb.4:
	ldur	x8, [x29, #-40]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.5:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	sub	sp, x29, #32
	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
	b	_device_printf
LBB0_7:
Lloh22:
	adrp	x8, _PCMDIR_PLAY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PCMDIR_PLAY@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x2, _bcmchan_class@GOTPAGE
Lloh26:
	ldr	x2, [x2, _bcmchan_class@GOTPAGEOFF]
	mov	x3, x19
	bl	_pcm_addchan
	ldr	w1, [x21]
Lloh27:
	adrp	x2, l_.str.2@PAGE
Lloh28:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_snprintf
	ldr	w0, [x19, #8]
	mov	x1, x20
	bl	_pcm_setstatus
	add	x0, x19, #4
	bl	_bcm2835_audio_reset_channel
	mov	x0, x19
	bl	_bcm2835_audio_create_worker
	mov	x0, x19
	bl	_vchi_audio_sysctl_init
	ldur	x8, [x29, #-40]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	sub	sp, x29, #32
	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_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_SND_STATUSLEN,4,2              ; @SND_STATUSLEN
	.comm	_DEST_AUTO,4,2                  ; @DEST_AUTO
	.comm	_bcmmixer_class,4,2             ; @bcmmixer_class
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mixer_init failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"pcm_register failed\n"

	.comm	_PCMDIR_PLAY,4,2                ; @PCMDIR_PLAY
	.comm	_bcmchan_class,4,2              ; @bcmchan_class
l_.str.2:                               ; @.str.2
	.asciz	"at VCHIQ"

	.no_dead_strip	_bcm2835_audio_delayed_init
.subsections_via_symbols
