	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmalomx_set_port_settings
_mmalomx_set_port_settings:             ## @mmalomx_set_port_settings
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movq	(%r15), %r12
	movq	(%rsi), %rdi
	callq	_mmalil_omx_domain_to_es_type
	movq	24(%r15), %rcx
	movl	%eax, 32(%rcx)
	movq	$0, 24(%rcx)
	movq	(%rbx), %rax
	movq	_OMX_PortDomainVideo@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_14
## %bb.1:
	movq	80(%rbx), %rdi
	movq	_OMX_VIDEO_CodingUnused@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_2
## %bb.3:
	movl	124(%rbx), %edi
	callq	_mmalil_omx_color_format_to_encoding
	jmp	LBB0_4
LBB0_14:
	movq	_OMX_PortDomainImage@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_27
## %bb.15:
	movq	32(%rbx), %rdi
	movq	_OMX_IMAGE_CodingUnused@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_16
## %bb.17:
	movl	72(%rbx), %edi
	callq	_mmalil_omx_color_format_to_encoding
	jmp	LBB0_18
LBB0_2:
	callq	_mmalil_omx_video_coding_to_encoding
LBB0_4:
	movq	24(%r15), %rdx
	movq	%rax, (%rdx)
	movl	120(%rbx), %ecx
	movl	%ecx, 16(%rdx)
	movq	112(%rbx), %rcx
	movq	8(%rdx), %rdx
	movq	%rcx, 24(%rdx)
	cmpl	$0, 4(%r14)
	jne	LBB0_6
## %bb.5:
	movq	%rcx, 16(%rdx)
LBB0_6:
	movl	108(%rbx), %esi
	movq	%rax, %rdi
	callq	_mmal_encoding_stride_to_width
	movq	24(%r15), %rcx
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	(%rcx), %rdi
	movl	108(%rbx), %esi
	callq	_mmal_encoding_stride_to_width
	movq	24(%r15), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, 24(%rcx)
	jmp	LBB0_9
LBB0_27:
	movq	_OMX_PortDomainAudio@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_29
## %bb.28:
	movl	24(%rbx), %edi
	callq	_mmalil_omx_audio_coding_to_encoding
	movq	24(%r15), %rcx
	jmp	LBB0_30
LBB0_7:
	movq	8(%rcx), %rcx
LBB0_9:
	movq	88(%rbx), %rax
	movq	%rax, (%rcx)
	cmpl	$0, 4(%r14)
	jne	LBB0_11
## %bb.10:
	movq	%rax, 8(%rcx)
LBB0_11:
	movq	96(%rbx), %rdx
	cmpq	%rax, %rdx
	jle	LBB0_13
## %bb.12:
	movq	%rdx, (%rcx)
LBB0_13:
	movl	104(%rbx), %eax
	movl	%eax, 36(%rcx)
	movl	$65536, 32(%rcx)                ## imm = 0x10000
	jmp	LBB0_31
LBB0_16:
	callq	_mmalil_omx_image_coding_to_encoding
LBB0_18:
	movq	%rax, %rdi
	movq	24(%r15), %rcx
	movq	%rax, (%rcx)
	movq	64(%rbx), %rax
	movq	8(%rcx), %rcx
	movq	%rax, 24(%rcx)
	cmpl	$0, 4(%r14)
	jne	LBB0_20
## %bb.19:
	movq	%rax, 16(%rcx)
LBB0_20:
	movl	56(%rbx), %esi
	callq	_mmal_encoding_stride_to_width
	movq	24(%r15), %rcx
	testq	%rax, %rax
	je	LBB0_21
## %bb.22:
	movq	(%rcx), %rdi
	movl	56(%rbx), %esi
	callq	_mmal_encoding_stride_to_width
	movq	24(%r15), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, 24(%rcx)
	jmp	LBB0_23
LBB0_29:
	movq	_MMAL_ENCODING_UNKNOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_30:
	movq	%rax, (%rcx)
	jmp	LBB0_31
LBB0_21:
	movq	8(%rcx), %rcx
LBB0_23:
	movq	40(%rbx), %rax
	movq	%rax, (%rcx)
	cmpl	$0, 4(%r14)
	jne	LBB0_25
## %bb.24:
	movq	%rax, 8(%rcx)
LBB0_25:
	movq	48(%rbx), %rdx
	cmpq	%rax, %rdx
	jle	LBB0_31
## %bb.26:
	movq	%rdx, (%rcx)
LBB0_31:
	movl	16(%rbx), %eax
	movl	%eax, 16(%r15)
	movq	8(%rbx), %rax
	movq	(%r15), %rcx
	cmpq	%rcx, %rax
	cmovgq	%rax, %rcx
	movq	%rcx, 8(%r15)
	movq	%r15, %rdi
	callq	_mmal_port_format_commit
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_34
## %bb.32:
	movq	_MMAL_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r14)
	movq	(%r15), %rcx
	cmpq	%r12, %rcx
	je	LBB0_34
## %bb.33:
	movq	%rcx, 8(%r15)
LBB0_34:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OMX_PortDomainVideo,8,3        ## @OMX_PortDomainVideo
	.comm	_OMX_VIDEO_CodingUnused,8,3     ## @OMX_VIDEO_CodingUnused
	.comm	_OMX_PortDomainImage,8,3        ## @OMX_PortDomainImage
	.comm	_OMX_IMAGE_CodingUnused,8,3     ## @OMX_IMAGE_CodingUnused
	.comm	_OMX_PortDomainAudio,8,3        ## @OMX_PortDomainAudio
	.comm	_MMAL_ENCODING_UNKNOWN,8,3      ## @MMAL_ENCODING_UNKNOWN
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.comm	_MMAL_FALSE,4,2                 ## @MMAL_FALSE
	.no_dead_strip	_mmalomx_set_port_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmalomx_set_port_settings
_mmalomx_set_port_settings:             ; @mmalomx_set_port_settings
	.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
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
	ldr	x22, [x19]
	ldr	x0, [x1]
	bl	_mmalil_omx_domain_to_es_type
	ldr	x8, [x19, #24]
	str	w0, [x8, #32]
	str	xzr, [x8, #24]
	ldr	x9, [x21]
Lloh0:
	adrp	x10, _OMX_PortDomainVideo@GOTPAGE
Lloh1:
	ldr	x10, [x10, _OMX_PortDomainVideo@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.1:
	ldr	x0, [x21, #80]
Lloh3:
	adrp	x8, _OMX_VIDEO_CodingUnused@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OMX_VIDEO_CodingUnused@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.2:
	ldr	w0, [x21, #124]
	bl	_mmalil_omx_color_format_to_encoding
	b	LBB0_7
LBB0_3:
Lloh6:
	adrp	x10, _OMX_PortDomainImage@GOTPAGE
Lloh7:
	ldr	x10, [x10, _OMX_PortDomainImage@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_11
; %bb.4:
	ldr	x0, [x21, #32]
Lloh9:
	adrp	x8, _OMX_IMAGE_CodingUnused@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OMX_IMAGE_CodingUnused@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_23
; %bb.5:
	ldr	w0, [x21, #72]
	bl	_mmalil_omx_color_format_to_encoding
	b	LBB0_24
LBB0_6:
	bl	_mmalil_omx_video_coding_to_encoding
LBB0_7:
	ldr	x9, [x19, #24]
	str	x0, [x9]
	ldr	w8, [x21, #120]
	str	w8, [x9, #16]
	ldr	x8, [x21, #112]
	ldr	x9, [x9, #8]
	str	x8, [x9, #24]
	ldr	w10, [x20, #4]
	cbnz	w10, LBB0_9
; %bb.8:
	str	x8, [x9, #16]
LBB0_9:
	ldr	w1, [x21, #108]
	bl	_mmal_encoding_stride_to_width
	ldr	x8, [x19, #24]
	cbz	x0, LBB0_13
; %bb.10:
	ldr	x0, [x8]
	ldr	w1, [x21, #108]
	bl	_mmal_encoding_stride_to_width
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	str	x0, [x8, #24]
	b	LBB0_14
LBB0_11:
Lloh12:
	adrp	x10, _OMX_PortDomainAudio@GOTPAGE
Lloh13:
	ldr	x10, [x10, _OMX_PortDomainAudio@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_28
; %bb.12:
	ldr	w0, [x21, #24]
	bl	_mmalil_omx_audio_coding_to_encoding
	ldr	x8, [x19, #24]
	str	x0, [x8]
	b	LBB0_19
LBB0_13:
	ldr	x8, [x8, #8]
LBB0_14:
	ldr	x9, [x21, #88]
	str	x9, [x8]
	ldr	w10, [x20, #4]
	cbnz	w10, LBB0_16
; %bb.15:
	str	x9, [x8, #8]
LBB0_16:
	ldr	x10, [x21, #96]
	cmp	x10, x9
	b.le	LBB0_18
; %bb.17:
	str	x10, [x8]
LBB0_18:
	ldr	w9, [x21, #104]
	mov	w10, #65536
	stp	w10, w9, [x8, #32]
LBB0_19:
	ldr	w8, [x21, #16]
	str	w8, [x19, #16]
	ldr	x8, [x21, #8]
	ldr	x9, [x19]
	cmp	x8, x9
	csel	x8, x8, x9, gt
	str	x8, [x19, #8]
	mov	x0, x19
	bl	_mmal_port_format_commit
Lloh15:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_22
; %bb.20:
Lloh18:
	adrp	x8, _MMAL_FALSE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MMAL_FALSE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x20]
	ldr	x8, [x19]
	cmp	x8, x22
	b.eq	LBB0_22
; %bb.21:
	str	x8, [x19, #8]
LBB0_22:
	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_23:
	bl	_mmalil_omx_image_coding_to_encoding
LBB0_24:
	ldr	x9, [x19, #24]
	str	x0, [x9]
	ldr	x8, [x21, #64]
	ldr	x9, [x9, #8]
	str	x8, [x9, #24]
	ldr	w10, [x20, #4]
	cbnz	w10, LBB0_26
; %bb.25:
	str	x8, [x9, #16]
LBB0_26:
	ldr	w1, [x21, #56]
	bl	_mmal_encoding_stride_to_width
	ldr	x8, [x19, #24]
	cbz	x0, LBB0_29
; %bb.27:
	ldr	x0, [x8]
	ldr	w1, [x21, #56]
	bl	_mmal_encoding_stride_to_width
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	str	x0, [x8, #24]
	b	LBB0_30
LBB0_28:
Lloh21:
	adrp	x9, _MMAL_ENCODING_UNKNOWN@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MMAL_ENCODING_UNKNOWN@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	str	x9, [x8]
	b	LBB0_19
LBB0_29:
	ldr	x8, [x8, #8]
LBB0_30:
	ldr	x9, [x21, #40]
	str	x9, [x8]
	ldr	w10, [x20, #4]
	cbnz	w10, LBB0_32
; %bb.31:
	str	x9, [x8, #8]
LBB0_32:
	ldr	x10, [x21, #48]
	cmp	x10, x9
	b.le	LBB0_19
; %bb.33:
	str	x10, [x8]
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_OMX_PortDomainVideo,8,3        ; @OMX_PortDomainVideo
	.comm	_OMX_VIDEO_CodingUnused,8,3     ; @OMX_VIDEO_CodingUnused
	.comm	_OMX_PortDomainImage,8,3        ; @OMX_PortDomainImage
	.comm	_OMX_IMAGE_CodingUnused,8,3     ; @OMX_IMAGE_CodingUnused
	.comm	_OMX_PortDomainAudio,8,3        ; @OMX_PortDomainAudio
	.comm	_MMAL_ENCODING_UNKNOWN,8,3      ; @MMAL_ENCODING_UNKNOWN
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.comm	_MMAL_FALSE,4,2                 ; @MMAL_FALSE
	.no_dead_strip	_mmalomx_set_port_settings
.subsections_via_symbols
