	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function mmalomx_role_set
LCPI0_0:
	.long	176                             ## 0xb0
	.long	144                             ## 0x90
	.long	15                              ## 0xf
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mmalomx_role_set
	.p2align	4, 0x90
_mmalomx_role_set:                      ## @mmalomx_role_set
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_mmalomx_role_from_name
	movl	%eax, %ebx
	movq	_MMAL_ENCODING_UNKNOWN@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, -56(%rbp)
	movq	_MMAL_ES_TYPE_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_OMX_ErrorUnsupportedSetting@GOTPCREL(%rip), %r12
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.1:
	movl	16(%r15), %edi
	movl	%ebx, %esi
	callq	_mmalomx_registry_component_supports_role
	testl	%eax, %eax
	je	LBB0_13
## %bb.2:
	movl	%ebx, (%r15)
	leaq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movl	%ebx, %edi
	callq	_mmalomx_format_encoding_from_role
	movq	-56(%rbp), %rcx
	movq	_OMX_ErrorNone@GOTPCREL(%rip), %r12
	cmpq	(%r13), %rcx
	je	LBB0_13
## %bb.3:
	movq	8(%r15), %rax
	movl	-44(%rbp), %edx
	leaq	(%rdx,%rdx,2), %rdx
	shlq	$4, %rdx
	movq	(%rax,%rdx), %rdx
	movq	8(%rdx), %rdx
	movl	-48(%rbp), %esi
	movl	%esi, (%rdx)
	movq	%rcx, 16(%rdx)
	movl	$64000, 4(%rdx)                 ## imm = 0xFA00
	cmpl	$128, -48(%rbp)
	jne	LBB0_5
## %bb.4:
	movq	8(%rdx), %rcx
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [176,144,15,1]
	movups	%xmm0, (%rcx)
LBB0_5:
	addl	$-129, %ebx
	cmpl	$6, %ebx
	ja	LBB0_11
## %bb.6:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_8:
	movq	_OMX_VIDEO_MPEG4ProfileSimple@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-44(%rbp), %edx
	leaq	(%rdx,%rdx,2), %rdx
	shlq	$4, %rdx
	movl	%ecx, 24(%rax,%rdx)
	movq	_OMX_VIDEO_MPEG4Level1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-44(%rbp), %edx
	leaq	(%rdx,%rdx,2), %rdx
	shlq	$4, %rdx
	movl	%ecx, 20(%rax,%rdx)
	jmp	LBB0_11
LBB0_7:
	movq	_OMX_VIDEO_H263ProfileBaseline@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-44(%rbp), %edx
	leaq	(%rdx,%rdx,2), %rdx
	shlq	$4, %rdx
	movl	%ecx, 40(%rax,%rdx)
	movq	_OMX_VIDEO_H263Level10@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-44(%rbp), %edx
	leaq	(%rdx,%rdx,2), %rdx
	shlq	$4, %rdx
	movl	%ecx, 36(%rax,%rdx)
	movq	_OMX_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-44(%rbp), %edx
	leaq	(%rdx,%rdx,2), %rdx
	shlq	$4, %rdx
	movl	%ecx, 32(%rax,%rdx)
	movq	_OMX_TRUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-44(%rbp), %edx
	leaq	(%rdx,%rdx,2), %rdx
	shlq	$4, %rdx
	movl	%ecx, 28(%rax,%rdx)
	jmp	LBB0_11
LBB0_9:
	movq	_OMX_VIDEO_AVCProfileBaseline@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-44(%rbp), %edx
	leaq	(%rdx,%rdx,2), %rdx
	shlq	$4, %rdx
	movl	%ecx, 16(%rax,%rdx)
	movq	_OMX_VIDEO_AVCLevel1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-44(%rbp), %edx
	leaq	(%rdx,%rdx,2), %rdx
	shlq	$4, %rdx
	movl	%ecx, 12(%rax,%rdx)
	jmp	LBB0_11
LBB0_10:
	movq	_OMX_VIDEO_WMVFormat9@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-44(%rbp), %edx
	leaq	(%rdx,%rdx,2), %rdx
	shlq	$4, %rdx
	movl	%ecx, 8(%rax,%rdx)
LBB0_11:
	movl	-44(%rbp), %ecx
	leaq	(%rcx,%rcx,2), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	callq	_mmal_port_format_commit
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.12:
	movq	8(%r15), %rax
	movl	-44(%rbp), %ecx
	leaq	(%rcx,%rcx,2), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rdx
	callq	_LOG_ERROR
LBB0_13:
	movl	(%r12), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_MMAL_ENCODING_UNKNOWN,8,3      ## @MMAL_ENCODING_UNKNOWN
	.comm	_MMAL_ES_TYPE_UNKNOWN,4,2       ## @MMAL_ES_TYPE_UNKNOWN
	.comm	_OMX_ErrorUnsupportedSetting,4,2 ## @OMX_ErrorUnsupportedSetting
	.comm	_OMX_ErrorNone,4,2              ## @OMX_ErrorNone
	.comm	_OMX_VIDEO_H263ProfileBaseline,4,2 ## @OMX_VIDEO_H263ProfileBaseline
	.comm	_OMX_VIDEO_H263Level10,4,2      ## @OMX_VIDEO_H263Level10
	.comm	_OMX_FALSE,4,2                  ## @OMX_FALSE
	.comm	_OMX_TRUE,4,2                   ## @OMX_TRUE
	.comm	_OMX_VIDEO_MPEG4ProfileSimple,4,2 ## @OMX_VIDEO_MPEG4ProfileSimple
	.comm	_OMX_VIDEO_MPEG4Level1,4,2      ## @OMX_VIDEO_MPEG4Level1
	.comm	_OMX_VIDEO_AVCProfileBaseline,4,2 ## @OMX_VIDEO_AVCProfileBaseline
	.comm	_OMX_VIDEO_AVCLevel1,4,2        ## @OMX_VIDEO_AVCLevel1
	.comm	_OMX_VIDEO_WMVFormat9,4,2       ## @OMX_VIDEO_WMVFormat9
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to commit format to %s for role %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function mmalomx_role_set
lCPI0_0:
	.long	176                             ; 0xb0
	.long	144                             ; 0x90
	.long	15                              ; 0xf
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mmalomx_role_set
	.p2align	2
_mmalomx_role_set:                      ; @mmalomx_role_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x20, x0
	mov	x0, x1
	bl	_mmalomx_role_from_name
Lloh0:
	adrp	x22, _MMAL_ENCODING_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MMAL_ENCODING_UNKNOWN@GOTPAGEOFF]
	ldr	x8, [x22]
	str	x8, [sp, #8]
Lloh2:
	adrp	x8, _MMAL_ES_TYPE_UNKNOWN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MMAL_ES_TYPE_UNKNOWN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #4]
	cbz	w0, LBB0_8
; %bb.1:
	mov	x21, x0
	ldr	w0, [x20, #16]
	mov	x1, x21
	bl	_mmalomx_registry_component_supports_role
	cbz	w0, LBB0_8
; %bb.2:
	str	w21, [x20]
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x3, sp
	mov	x0, x21
	bl	_mmalomx_format_encoding_from_role
	ldr	x9, [sp, #8]
	ldr	x8, [x22]
	cmp	x9, x8
	b.eq	LBB0_14
; %bb.3:
	ldr	x8, [x20, #8]
	ldr	w10, [sp]
	mov	w11, #48
	mul	x10, x10, x11
	ldr	x10, [x8, x10]
	ldr	x10, [x10, #8]
	ldr	w11, [sp, #4]
	str	x9, [x10, #16]
	mov	w9, #64000
	stp	w11, w9, [x10]
	ldr	w9, [sp, #4]
	cmp	w9, #128
	b.ne	LBB0_5
; %bb.4:
	ldr	x9, [x10, #8]
Lloh5:
	adrp	x10, lCPI0_0@PAGE
Lloh6:
	ldr	q0, [x10, lCPI0_0@PAGEOFF]
	str	q0, [x9]
LBB0_5:
	sub	w9, w21, #129
	cmp	w9, #6
	b.hi	LBB0_12
; %bb.6:
Lloh7:
	adrp	x10, lJTI0_0@PAGE
Lloh8:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_7
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_7:
Lloh9:
	adrp	x9, _OMX_VIDEO_MPEG4ProfileSimple@GOTPAGE
Lloh10:
	ldr	x9, [x9, _OMX_VIDEO_MPEG4ProfileSimple@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	ldr	w10, [sp]
	mov	w11, #48
	madd	x10, x10, x11, x8
	str	w9, [x10, #24]
Lloh12:
	adrp	x9, _OMX_VIDEO_MPEG4Level1@GOTPAGE
Lloh13:
	ldr	x9, [x9, _OMX_VIDEO_MPEG4Level1@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	ldr	w10, [sp]
	madd	x10, x10, x11, x8
	str	w9, [x10, #20]
	b	LBB0_12
LBB0_8:
Lloh15:
	adrp	x8, _OMX_ErrorUnsupportedSetting@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OMX_ErrorUnsupportedSetting@GOTPAGEOFF]
	b	LBB0_15
LBB0_9:
Lloh17:
	adrp	x9, _OMX_VIDEO_H263ProfileBaseline@GOTPAGE
Lloh18:
	ldr	x9, [x9, _OMX_VIDEO_H263ProfileBaseline@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	ldr	w10, [sp]
	mov	w11, #48
	madd	x10, x10, x11, x8
	str	w9, [x10, #40]
Lloh20:
	adrp	x9, _OMX_VIDEO_H263Level10@GOTPAGE
Lloh21:
	ldr	x9, [x9, _OMX_VIDEO_H263Level10@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	ldr	w10, [sp]
	madd	x10, x10, x11, x8
	str	w9, [x10, #36]
Lloh23:
	adrp	x9, _OMX_FALSE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _OMX_FALSE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	ldr	w10, [sp]
	madd	x10, x10, x11, x8
	str	w9, [x10, #32]
Lloh26:
	adrp	x9, _OMX_TRUE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _OMX_TRUE@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	ldr	w10, [sp]
	madd	x10, x10, x11, x8
	str	w9, [x10, #28]
	b	LBB0_12
LBB0_10:
Lloh29:
	adrp	x9, _OMX_VIDEO_AVCProfileBaseline@GOTPAGE
Lloh30:
	ldr	x9, [x9, _OMX_VIDEO_AVCProfileBaseline@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	ldr	w10, [sp]
	mov	w11, #48
	madd	x10, x10, x11, x8
	str	w9, [x10, #16]
Lloh32:
	adrp	x9, _OMX_VIDEO_AVCLevel1@GOTPAGE
Lloh33:
	ldr	x9, [x9, _OMX_VIDEO_AVCLevel1@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	ldr	w10, [sp]
	madd	x10, x10, x11, x8
	str	w9, [x10, #12]
	b	LBB0_12
LBB0_11:
Lloh35:
	adrp	x9, _OMX_VIDEO_WMVFormat9@GOTPAGE
Lloh36:
	ldr	x9, [x9, _OMX_VIDEO_WMVFormat9@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	ldr	w10, [sp]
	mov	w11, #48
	madd	x10, x10, x11, x8
	str	w9, [x10, #8]
LBB0_12:
	ldr	w9, [sp]
	mov	w10, #48
	mul	x9, x9, x10
	ldr	x0, [x8, x9]
	bl	_mmal_port_format_commit
Lloh38:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_14
; %bb.13:
	ldr	x8, [x20, #8]
	ldr	w9, [sp]
	mov	w10, #48
	mul	x9, x9, x10
	ldr	x8, [x8, x9]
	ldr	w1, [x8]
Lloh41:
	adrp	x0, l_.str@PAGE
Lloh42:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_LOG_ERROR
LBB0_14:
Lloh43:
	adrp	x8, _OMX_ErrorNone@GOTPAGE
Lloh44:
	ldr	x8, [x8, _OMX_ErrorNone@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_11-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
                                        ; -- End function
	.comm	_MMAL_ENCODING_UNKNOWN,8,3      ; @MMAL_ENCODING_UNKNOWN
	.comm	_MMAL_ES_TYPE_UNKNOWN,4,2       ; @MMAL_ES_TYPE_UNKNOWN
	.comm	_OMX_ErrorUnsupportedSetting,4,2 ; @OMX_ErrorUnsupportedSetting
	.comm	_OMX_ErrorNone,4,2              ; @OMX_ErrorNone
	.comm	_OMX_VIDEO_H263ProfileBaseline,4,2 ; @OMX_VIDEO_H263ProfileBaseline
	.comm	_OMX_VIDEO_H263Level10,4,2      ; @OMX_VIDEO_H263Level10
	.comm	_OMX_FALSE,4,2                  ; @OMX_FALSE
	.comm	_OMX_TRUE,4,2                   ; @OMX_TRUE
	.comm	_OMX_VIDEO_MPEG4ProfileSimple,4,2 ; @OMX_VIDEO_MPEG4ProfileSimple
	.comm	_OMX_VIDEO_MPEG4Level1,4,2      ; @OMX_VIDEO_MPEG4Level1
	.comm	_OMX_VIDEO_AVCProfileBaseline,4,2 ; @OMX_VIDEO_AVCProfileBaseline
	.comm	_OMX_VIDEO_AVCLevel1,4,2        ; @OMX_VIDEO_AVCLevel1
	.comm	_OMX_VIDEO_WMVFormat9,4,2       ; @OMX_VIDEO_WMVFormat9
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to commit format to %s for role %s"

.subsections_via_symbols
