	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmal_vc_port_info_set
_mmal_vc_port_info_set:                 ## @mmal_vc_port_info_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	%rbx
	subq	$216, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	56(%rdi), %rax
	movq	(%rax), %rax
	movq	$80, -32(%rbp)
	movl	(%rax), %eax
	movl	%eax, -120(%rbp)
	movl	48(%rdi), %eax
	movl	%eax, -124(%rbp)
	movl	44(%rdi), %eax
	movl	%eax, -128(%rbp)
	movups	(%rdi), %xmm0
	movups	16(%rdi), %xmm1
	movups	32(%rdi), %xmm2
	movups	48(%rdi), %xmm3
	movups	%xmm0, -192(%rbp)
	movups	%xmm1, -176(%rbp)
	movups	%xmm2, -160(%rbp)
	movups	%xmm3, -144(%rbp)
	movq	(%rdi), %rax
	movq	16(%rax), %rcx
	movq	%rcx, -208(%rbp)
	movups	(%rax), %xmm0
	movups	%xmm0, -224(%rbp)
	movq	16(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, -196(%rbp)
	movq	-224(%rbp), %rdx
	movq	_MMAL_FORMAT_EXTRADATA_MAX_SIZE@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rdx
	jle	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	callq	_vcos_assert
	movq	(%r14), %rdx
	movq	%rdx, -224(%rbp)
LBB0_2:
	movl	-216(%rbp), %esi
	callq	_memcpy
	movl	44(%rbx), %edx
	movl	48(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_LOG_TRACE
	xorl	%eax, %eax
	callq	_mmal_vc_get_client
	movq	_MMAL_WORKER_PORT_INFO_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_MMAL_FALSE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, (%rsp)
	leaq	-232(%rbp), %rsi
	leaq	-112(%rbp), %r8
	leaq	-32(%rbp), %r9
	movl	%eax, %edi
	movl	$120, %edx
	callq	_mmal_vc_sendwait_message
	movq	%rax, %r14
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	cmpq	%rax, %r14
	jne	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	cmpq	$80, -32(%rbp)
	sete	%dil
	callq	_vcos_assert
	movq	-112(%rbp), %r14
	movq	(%r15), %rax
LBB0_4:
	cmpq	%rax, %r14
	jne	LBB0_5
## %bb.6:
	movl	-40(%rbp), %eax
	movl	%eax, 40(%rbx)
	movups	-56(%rbp), %xmm0
	movups	%xmm0, 24(%rbx)
	movups	-72(%rbp), %xmm0
	movups	%xmm0, 8(%rbx)
	movq	(%rbx), %rax
	movl	8(%rax), %ecx
	movl	%ecx, -88(%rbp)
	movq	16(%rax), %rcx
	movq	%rcx, -80(%rbp)
	movq	%rcx, 16(%rax)
	movups	-96(%rbp), %xmm0
	movups	%xmm0, (%rax)
	movl	-100(%rbp), %eax
	movq	(%rbx), %rdi
	movq	16(%rdi), %rcx
	movl	%eax, (%rcx)
	movq	(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.7:
	callq	_mmal_format_extradata_alloc
	cmpq	(%r15), %rax
	jne	LBB0_8
## %bb.9:
	movq	(%rbx), %rax
	movl	8(%rax), %edi
	movl	-104(%rbp), %esi
	movq	(%rax), %rdx
	callq	_memcpy
LBB0_10:
	movq	(%r15), %r14
	jmp	LBB0_11
LBB0_5:
	movslq	48(%rbx), %r15
	movl	44(%rbx), %ebx
	movq	%r14, %rdi
	callq	_mmal_status_to_string
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_LOG_ERROR
	jmp	LBB0_11
LBB0_8:
	xorl	%edi, %edi
	callq	_vcos_assert
	movq	(%rbx), %rax
	movq	$0, (%rax)
	leaq	L_.str.2(%rip), %rdi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	movq	_MMAL_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_11:
	movq	%r14, %rax
	addq	$216, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_FORMAT_EXTRADATA_MAX_SIZE,8,3 ## @MMAL_FORMAT_EXTRADATA_MAX_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set port info (%i:%i)"

	.comm	_MMAL_WORKER_PORT_INFO_SET,4,2  ## @MMAL_WORKER_PORT_INFO_SET
	.comm	_MMAL_FALSE,4,2                 ## @MMAL_FALSE
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"failed to set port info (%i:%i): %s"

L_.str.2:                               ## @.str.2
	.asciz	"couldn't allocate extradata %i"

	.comm	_MMAL_ENOMEM,8,3                ## @MMAL_ENOMEM
	.no_dead_strip	_mmal_vc_port_info_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmal_vc_port_info_set
_mmal_vc_port_info_set:                 ; @mmal_vc_port_info_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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
	add	x8, sp, #104
	ldr	x9, [x0, #56]
	ldr	x9, [x9]
	mov	w10, #80
	str	x10, [sp, #16]
	ldr	w9, [x9]
	ldur	d0, [x0, #44]
	str	d0, [sp, #208]
	ldr	q0, [x0, #48]
	stur	q0, [x8, #88]
	ldp	q1, q0, [x0, #16]
	stur	q0, [x8, #72]
	str	w9, [sp, #216]
	stur	q1, [x8, #56]
	ldr	q0, [x0]
	stur	q0, [x8, #40]
	ldr	x8, [x0]
	ldr	q0, [x8]
	ldr	x9, [x8, #16]
	str	x9, [sp, #128]
	stur	q0, [sp, #112]
	ldr	x8, [x8, #16]
	ldr	w8, [x8]
	str	w8, [sp, #140]
	ldr	x2, [sp, #112]
Lloh0:
	adrp	x20, _MMAL_FORMAT_EXTRADATA_MAX_SIZE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MMAL_FORMAT_EXTRADATA_MAX_SIZE@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x2, x8
	b.le	LBB0_2
; %bb.1:
	mov	w0, #0
	bl	_vcos_assert
	ldr	x2, [x20]
	str	x2, [sp, #112]
LBB0_2:
	ldr	w1, [sp, #120]
	bl	_memcpy
	ldp	w2, w1, [x19, #44]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_TRACE
	bl	_mmal_vc_get_client
Lloh4:
	adrp	x8, _MMAL_WORKER_PORT_INFO_SET@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MMAL_WORKER_PORT_INFO_SET@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
Lloh7:
	adrp	x8, _MMAL_FALSE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MMAL_FALSE@GOTPAGEOFF]
Lloh9:
	ldr	w6, [x8]
	add	x1, sp, #104
	add	x4, sp, #24
	add	x5, sp, #16
	mov	w2, #120
	bl	_mmal_vc_sendwait_message
Lloh10:
	adrp	x21, _MMAL_SUCCESS@GOTPAGE
Lloh11:
	ldr	x21, [x21, _MMAL_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [sp, #16]
	cmp	x8, #80
	cset	w0, eq
	bl	_vcos_assert
	ldr	x20, [sp, #24]
	ldr	x8, [x21]
	cmp	x20, x8
	b.eq	LBB0_6
LBB0_4:
	ldp	w19, w21, [x19, #44]
                                        ; kill: def $w21 killed $w21 def $x21
	sxtw	x21, w21
	mov	x0, x20
	bl	_mmal_status_to_string
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x19, x0, [sp]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_LOG_ERROR
	b	LBB0_11
LBB0_5:
	mov	x20, x0
	cmp	x20, x8
	b.ne	LBB0_4
LBB0_6:
	ldr	w8, [sp, #96]
	str	w8, [x19, #40]
	ldur	q0, [sp, #80]
	stur	q0, [x19, #24]
	ldur	q0, [sp, #64]
	stur	q0, [x19, #8]
	ldr	x8, [x19]
	ldr	w9, [x8, #8]
	str	w9, [sp, #48]
	ldr	x9, [x8, #16]
	str	x9, [sp, #56]
	ldur	q0, [sp, #40]
	str	x9, [x8, #16]
	str	q0, [x8]
	ldr	w8, [sp, #36]
	ldr	x0, [x19]
	ldr	x9, [x0, #16]
	str	w8, [x9]
	ldr	x1, [x0]
	cbz	x1, LBB0_9
; %bb.7:
	bl	_mmal_format_extradata_alloc
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.8:
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	ldr	w1, [sp, #32]
	ldr	x2, [x8]
	bl	_memcpy
LBB0_9:
	ldr	x20, [x21]
	b	LBB0_11
LBB0_10:
	mov	w0, #0
	bl	_vcos_assert
	ldr	x8, [x19]
	str	xzr, [x8]
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, #0
	bl	_LOG_ERROR
Lloh16:
	adrp	x8, _MMAL_ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MMAL_ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	x20, [x8]
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_FORMAT_EXTRADATA_MAX_SIZE,8,3 ; @MMAL_FORMAT_EXTRADATA_MAX_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set port info (%i:%i)"

	.comm	_MMAL_WORKER_PORT_INFO_SET,4,2  ; @MMAL_WORKER_PORT_INFO_SET
	.comm	_MMAL_FALSE,4,2                 ; @MMAL_FALSE
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"failed to set port info (%i:%i): %s"

l_.str.2:                               ; @.str.2
	.asciz	"couldn't allocate extradata %i"

	.comm	_MMAL_ENOMEM,8,3                ; @MMAL_ENOMEM
	.no_dead_strip	_mmal_vc_port_info_set
.subsections_via_symbols
