	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdl_port_set_format
_sdl_port_set_format:                   ## @sdl_port_set_format
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	movq	8(%rdi), %rsi
	movq	(%rsi), %rax
	movq	_MMAL_ENCODING_PCM_SIGNED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.1:
	movq	_MMAL_ENCODING_PCM_FLOAT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.2:
	movq	8(%rsi), %rax
	movl	(%rax), %edx
	cmpl	$16, %edx
	je	LBB0_5
## %bb.3:
	cmpl	$32, %edx
	jne	LBB0_4
LBB0_5:
	cmpq	$0, (%r14)
	je	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_SDL_CloseAudio
	movq	8(%rbx), %rsi
LBB0_7:
	movq	_MMAL_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	8(%rsi), %rax
	movl	8(%rax), %ecx
	movl	%ecx, -48(%rbp)
	movq	_AUDIO_S16SYS@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movq	%rcx, -64(%rbp)
	movl	4(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_sdl_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	%rbx, -40(%rbp)
	movq	_FRAME_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	leaq	-64(%rbp), %rdi
	leaq	-104(%rbp), %rsi
	callq	_SDL_OpenAudio
	movq	_MMAL_ENOSYS@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	js	LBB0_10
## %bb.8:
	movq	_MMAL_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	-104(%rbp), %rax
	cmpq	(%r15), %rax
	jne	LBB0_10
## %bb.9:
	movl	-88(%rbp), %eax
	movq	8(%rbx), %rcx
	movq	8(%rcx), %rcx
	movl	%eax, 8(%rcx)
	movl	-96(%rbp), %eax
	movl	%eax, 4(%rcx)
	imull	-92(%rbp), %eax
	addl	%eax, %eax
	movl	%eax, (%rbx)
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_LOG_ERROR
	movq	_MMAL_EINVAL@GOTPCREL(%rip), %rcx
LBB0_10:
	movl	(%rcx), %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_ENCODING_PCM_SIGNED,8,3   ## @MMAL_ENCODING_PCM_SIGNED
	.comm	_MMAL_ENCODING_PCM_FLOAT,8,3    ## @MMAL_ENCODING_PCM_FLOAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"port does not support '%4.4s' at %ibps"

	.comm	_MMAL_EINVAL,4,2                ## @MMAL_EINVAL
	.comm	_MMAL_FALSE,8,3                 ## @MMAL_FALSE
	.comm	_AUDIO_S16SYS,8,3               ## @AUDIO_S16SYS
	.comm	_sdl_callback,4,2               ## @sdl_callback
	.comm	_FRAME_LENGTH,4,2               ## @FRAME_LENGTH
	.comm	_MMAL_ENOSYS,4,2                ## @MMAL_ENOSYS
	.comm	_MMAL_TRUE,8,3                  ## @MMAL_TRUE
	.comm	_MMAL_SUCCESS,4,2               ## @MMAL_SUCCESS
	.no_dead_strip	_sdl_port_set_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdl_port_set_format
_sdl_port_set_format:                   ; @sdl_port_set_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x0
	ldp	x1, x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x20, [x8]
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _MMAL_ENCODING_PCM_SIGNED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMAL_ENCODING_PCM_SIGNED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _MMAL_ENCODING_PCM_FLOAT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MMAL_ENCODING_PCM_FLOAT@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x1, #8]
	ldr	w2, [x8]
	cmp	w2, #16
	b.eq	LBB0_3
; %bb.2:
	cmp	w2, #32
	b.ne	LBB0_9
LBB0_3:
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.4:
	bl	_SDL_CloseAudio
	ldr	x1, [x19, #8]
LBB0_5:
Lloh6:
	adrp	x8, _MMAL_FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MMAL_FALSE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x20]
	ldr	x8, [x1, #8]
	ldr	w9, [x8, #8]
	str	w9, [sp, #56]
Lloh9:
	adrp	x21, _AUDIO_S16SYS@GOTPAGE
Lloh10:
	ldr	x21, [x21, _AUDIO_S16SYS@GOTPAGEOFF]
	ldr	x9, [x21]
	str	x9, [sp, #40]
	ldr	w8, [x8, #4]
Lloh11:
	adrp	x9, _sdl_callback@GOTPAGE
Lloh12:
	ldr	x9, [x9, _sdl_callback@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	str	w9, [sp, #72]
	str	x19, [sp, #64]
Lloh14:
	adrp	x9, _FRAME_LENGTH@GOTPAGE
Lloh15:
	ldr	x9, [x9, _FRAME_LENGTH@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #48]
	add	x0, sp, #40
	mov	x1, sp
	bl	_SDL_OpenAudio
	tbnz	x0, #63, LBB0_8
; %bb.6:
Lloh17:
	adrp	x8, _MMAL_TRUE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MMAL_TRUE@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	str	x8, [x20]
	ldr	x8, [sp]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldr	w8, [sp, #16]
	ldr	x9, [x19, #8]
	ldr	x9, [x9, #8]
	str	w8, [x9, #8]
	ldr	w8, [sp, #8]
	str	w8, [x9, #4]
	ldr	w9, [sp, #12]
	mul	w8, w8, w9
	lsl	w8, w8, #1
	str	w8, [x19]
Lloh20:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh22:
	adrp	x8, _MMAL_ENOSYS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MMAL_ENOSYS@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_ERROR
Lloh26:
	adrp	x8, _MMAL_EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MMAL_EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_ENCODING_PCM_SIGNED,8,3   ; @MMAL_ENCODING_PCM_SIGNED
	.comm	_MMAL_ENCODING_PCM_FLOAT,8,3    ; @MMAL_ENCODING_PCM_FLOAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"port does not support '%4.4s' at %ibps"

	.comm	_MMAL_EINVAL,4,2                ; @MMAL_EINVAL
	.comm	_MMAL_FALSE,8,3                 ; @MMAL_FALSE
	.comm	_AUDIO_S16SYS,8,3               ; @AUDIO_S16SYS
	.comm	_sdl_callback,4,2               ; @sdl_callback
	.comm	_FRAME_LENGTH,4,2               ; @FRAME_LENGTH
	.comm	_MMAL_ENOSYS,4,2                ; @MMAL_ENOSYS
	.comm	_MMAL_TRUE,8,3                  ; @MMAL_TRUE
	.comm	_MMAL_SUCCESS,4,2               ; @MMAL_SUCCESS
	.no_dead_strip	_sdl_port_set_format
.subsections_via_symbols
