	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spdif_input_port_format_commit
_spdif_input_port_format_commit:        ## @spdif_input_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
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rsi
	movq	16(%rdi), %r15
	movq	(%r15), %rax
	movq	(%rax), %r14
	movq	(%rsi), %rax
	movq	_MMAL_ENCODING_AC3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_MMAL_ENCODING_EAC3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_MMAL_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_3:
	movq	8(%rsi), %rax
	movq	(%rax), %rdx
	movl	8(%rax), %ecx
	movl	16(%rsi), %r8d
	leaq	L_.str(%rip), %rdi
	callq	_LOG_INFO
	movq	(%rbx), %rdi
	movq	(%r14), %rsi
	callq	_mmal_format_compare
	testl	%eax, %eax
	je	LBB0_12
## %bb.4:
	movq	(%r14), %rdi
	movq	(%rdi), %rax
	movq	_MMAL_ENCODING_PCM_SIGNED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	movq	(%rbx), %rdx
	movq	8(%rdx), %rax
	movq	(%rax), %rax
	movq	8(%rdi), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.9:
	cmpl	$0, 8(%r14)
	jne	LBB0_10
	jmp	LBB0_11
LBB0_7:
	cmpl	$0, 8(%r14)
	movq	(%rbx), %rdx
	je	LBB0_8
LBB0_10:
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spdif_send_event_format_changed ## TAILCALL
LBB0_8:
	movq	%rdx, %rsi
	callq	_mmal_format_copy
	movq	(%rbx), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	(%r14), %rcx
	movq	8(%rcx), %rcx
LBB0_11:
	movq	%rax, (%rcx)
LBB0_12:
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_ENCODING_AC3,8,3          ## @MMAL_ENCODING_AC3
	.comm	_MMAL_ENCODING_EAC3,8,3         ## @MMAL_ENCODING_EAC3
	.comm	_MMAL_ENXIO,4,2                 ## @MMAL_ENXIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%4.4s, %iHz, %ichan, %ibps"

	.comm	_MMAL_SUCCESS,4,2               ## @MMAL_SUCCESS
	.comm	_MMAL_ENCODING_PCM_SIGNED,8,3   ## @MMAL_ENCODING_PCM_SIGNED
	.no_dead_strip	_spdif_input_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_input_port_format_commit
_spdif_input_port_format_commit:        ; @spdif_input_port_format_commit
	.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
	ldr	x1, [x0]
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _MMAL_ENCODING_AC3@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMAL_ENCODING_AC3@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _MMAL_ENCODING_EAC3@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MMAL_ENCODING_EAC3@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	x20, [x0, #16]
	ldr	x8, [x20]
	ldr	x19, [x8]
	ldr	x8, [x1, #8]
	ldr	x2, [x8]
	ldr	w3, [x8, #8]
	ldr	w4, [x1, #16]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_INFO
	ldr	x0, [x21]
	ldr	x1, [x19]
	bl	_mmal_format_compare
	cbz	w0, LBB0_10
; %bb.2:
	ldr	x0, [x19]
	ldr	x8, [x0]
Lloh8:
	adrp	x9, _MMAL_ENCODING_PCM_SIGNED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MMAL_ENCODING_PCM_SIGNED@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	ldr	x2, [x21]
	ldr	x8, [x2, #8]
	ldr	x8, [x8]
	ldr	x9, [x0, #8]
	ldr	x10, [x9]
	cmp	x8, x10
	b.eq	LBB0_10
; %bb.4:
	ldr	w10, [x19, #8]
	cbnz	w10, LBB0_7
	b	LBB0_9
LBB0_5:
Lloh11:
	adrp	x8, _MMAL_ENXIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MMAL_ENXIO@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
	ldr	w8, [x19, #8]
	ldr	x2, [x21]
	cbz	w8, LBB0_8
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	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	_spdif_send_event_format_changed
LBB0_8:
	mov	x1, x2
	bl	_mmal_format_copy
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldr	x9, [x9, #8]
LBB0_9:
	str	x8, [x9]
LBB0_10:
Lloh13:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_ENCODING_AC3,8,3          ; @MMAL_ENCODING_AC3
	.comm	_MMAL_ENCODING_EAC3,8,3         ; @MMAL_ENCODING_EAC3
	.comm	_MMAL_ENXIO,4,2                 ; @MMAL_ENXIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%4.4s, %iHz, %ichan, %ibps"

	.comm	_MMAL_SUCCESS,4,2               ; @MMAL_SUCCESS
	.comm	_MMAL_ENCODING_PCM_SIGNED,8,3   ; @MMAL_ENCODING_PCM_SIGNED
	.no_dead_strip	_spdif_input_port_format_commit
.subsections_via_symbols
