	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spdif_output_port_format_commit
_spdif_output_port_format_commit:       ## @spdif_output_port_format_commit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	16(%rdi), %rsi
	movq	(%rsi), %rax
	movq	_MMAL_ES_TYPE_AUDIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	movq	8(%rsi), %rax
	movq	_MMAL_ENCODING_PCM_SIGNED@GOTPCREL(%rip), %rdx
	movb	$1, %cl
	cmpq	(%rdx), %rax
	jne	LBB0_4
## %bb.2:
	movq	16(%rsi), %rdx
	cmpl	$2, (%rdx)
	jne	LBB0_4
## %bb.3:
	cmpl	$16, 4(%rdx)
	setne	%cl
LBB0_4:
	movq	_MMAL_ENCODING_AC3@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_8
## %bb.5:
	movq	_MMAL_ENCODING_EAC3@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_8
## %bb.6:
	testb	%cl, %cl
	je	LBB0_8
LBB0_7:
	movq	16(%rsi), %rax
	addq	$8, %rsi
	movl	(%rax), %edx
	movl	4(%rax), %ecx
	leaq	L_.str(%rip), %rdi
	callq	_LOG_ERROR
	movq	_MMAL_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	$0, (%rax)
	movl	(%rdi), %edi
	callq	_mmal_component_action_trigger
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_ES_TYPE_AUDIO,8,3         ## @MMAL_ES_TYPE_AUDIO
	.comm	_MMAL_ENCODING_PCM_SIGNED,8,3   ## @MMAL_ENCODING_PCM_SIGNED
	.comm	_MMAL_ENCODING_AC3,8,3          ## @MMAL_ENCODING_AC3
	.comm	_MMAL_ENCODING_EAC3,8,3         ## @MMAL_ENCODING_EAC3
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid format %4.4s, %ichan, %ibps"

	.comm	_MMAL_EINVAL,4,2                ## @MMAL_EINVAL
	.comm	_MMAL_SUCCESS,4,2               ## @MMAL_SUCCESS
	.no_dead_strip	_spdif_output_port_format_commit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spdif_output_port_format_commit
_spdif_output_port_format_commit:       ; @spdif_output_port_format_commit
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0, #16]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _MMAL_ES_TYPE_AUDIO@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MMAL_ES_TYPE_AUDIO@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.1:
	ldr	x9, [x8, #8]
Lloh3:
	adrp	x10, _MMAL_ENCODING_PCM_SIGNED@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MMAL_ENCODING_PCM_SIGNED@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.2:
	ldr	x10, [x8, #16]
	ldr	w11, [x10]
	cmp	w11, #2
	b.ne	LBB0_4
; %bb.3:
	ldr	w10, [x10, #4]
	cmp	w10, #16
	cset	w10, ne
	b	LBB0_5
LBB0_4:
	mov	w10, #1
LBB0_5:
Lloh6:
	adrp	x11, _MMAL_ENCODING_AC3@GOTPAGE
Lloh7:
	ldr	x11, [x11, _MMAL_ENCODING_AC3@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
Lloh9:
	adrp	x12, _MMAL_ENCODING_EAC3@GOTPAGE
Lloh10:
	ldr	x12, [x12, _MMAL_ENCODING_EAC3@GOTPAGEOFF]
Lloh11:
	ldr	x12, [x12]
	cmp	x9, x11
	ccmp	x9, x12, #4, ne
	ccmp	w10, #0, #4, ne
	b.ne	LBB0_7
; %bb.6:
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	str	xzr, [x8]
	ldr	w0, [x0]
	bl	_mmal_component_action_trigger
Lloh12:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	add	x1, x8, #8
	ldr	x8, [x8, #16]
	ldp	w2, w3, [x8]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_ERROR
Lloh16:
	adrp	x8, _MMAL_EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MMAL_EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_ES_TYPE_AUDIO,8,3         ; @MMAL_ES_TYPE_AUDIO
	.comm	_MMAL_ENCODING_PCM_SIGNED,8,3   ; @MMAL_ENCODING_PCM_SIGNED
	.comm	_MMAL_ENCODING_AC3,8,3          ; @MMAL_ENCODING_AC3
	.comm	_MMAL_ENCODING_EAC3,8,3         ; @MMAL_ENCODING_EAC3
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid format %4.4s, %ichan, %ibps"

	.comm	_MMAL_EINVAL,4,2                ; @MMAL_EINVAL
	.comm	_MMAL_SUCCESS,4,2               ; @MMAL_SUCCESS
	.no_dead_strip	_spdif_output_port_format_commit
.subsections_via_symbols
