	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdl_component_destroy
_sdl_component_destroy:                 ## @sdl_component_destroy
	.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, %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %r14
	cmpq	$0, 8(%r14)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_SDL_CloseAudio
LBB0_2:
	movq	_SDL_INIT_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SDL_QuitSubSystem
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	movl	$1, %esi
	callq	_mmal_ports_free
LBB0_4:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_mmal_queue_destroy
LBB0_6:
	movq	%r14, %rdi
	callq	_vcos_free
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDL_INIT_AUDIO,4,2             ## @SDL_INIT_AUDIO
	.comm	_MMAL_SUCCESS,4,2               ## @MMAL_SUCCESS
	.no_dead_strip	_sdl_component_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdl_component_destroy
_sdl_component_destroy:                 ; @sdl_component_destroy
	.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
	mov	x20, x0
	ldr	x8, [x0, #16]
	ldr	x19, [x8]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_SDL_CloseAudio
LBB0_2:
Lloh0:
	adrp	x8, _SDL_INIT_AUDIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDL_INIT_AUDIO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_SDL_QuitSubSystem
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x20]
	mov	w1, #1
	bl	_mmal_ports_free
LBB0_4:
	ldr	x0, [x19]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_mmal_queue_destroy
LBB0_6:
	mov	x0, x19
	bl	_vcos_free
Lloh3:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_SDL_INIT_AUDIO,4,2             ; @SDL_INIT_AUDIO
	.comm	_MMAL_SUCCESS,4,2               ; @MMAL_SUCCESS
	.no_dead_strip	_sdl_component_destroy
.subsections_via_symbols
