	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmal_port_name_update
_mmal_port_name_update:                 ## @mmal_port_name_update
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %rax
	movq	(%rax), %rax
	movl	8(%rax), %r14d
	movq	(%rax), %r13
	movq	_PORT_NAME_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	24(%rdi), %rax
	movl	(%rax), %r12d
	movl	16(%rdi), %edi
	callq	_mmal_port_type_to_string
	movq	(%rbx), %rdx
	movq	8(%rbx), %r9
	leaq	L_.str(%rip), %r10
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.1:
	cmpq	$0, (%rdx)
	je	LBB0_4
## %bb.2:
	movb	$40, %cl
	movq	%rdx, %r10
	jmp	LBB0_5
LBB0_4:
	xorl	%ecx, %ecx
LBB0_5:
	decq	%r13
	movzbl	%cl, %ebx
	movl	%r14d, %edi
	movq	%r13, %rsi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	%eax, %r8d
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	%r10
	pushq	%rbx
	callq	_vcos_snprintf
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_NAME_FORMAT,4,2           ## @PORT_NAME_FORMAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.no_dead_strip	_mmal_port_name_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmal_port_name_update
_mmal_port_name_update:                 ; @mmal_port_name_update
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x0
	ldp	x9, x8, [x0, #24]
	ldr	x8, [x8]
	ldr	w21, [x8, #8]
	ldr	x23, [x8]
Lloh0:
	adrp	x8, _PORT_NAME_FORMAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PORT_NAME_FORMAT@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	w19, [x9]
	ldr	w0, [x0, #16]
	bl	_mmal_port_type_to_string
	mov	x4, x0
	ldp	x8, x5, [x22]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x9, [x8]
Lloh3:
	adrp	x10, l_.str@PAGE
Lloh4:
	add	x10, x10, l_.str@PAGEOFF
	mov	w11, #40
	cmp	x9, #0
	csel	x7, x10, x8, eq
	csel	w6, wzr, w11, eq
	b	LBB0_3
LBB0_2:
	mov	w6, #0
Lloh5:
	adrp	x7, l_.str@PAGE
Lloh6:
	add	x7, x7, l_.str@PAGEOFF
LBB0_3:
	sub	x1, x23, #1
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
                                        ; kill: def $w5 killed $w5 killed $x5
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_vcos_snprintf
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_NAME_FORMAT,4,2           ; @PORT_NAME_FORMAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.no_dead_strip	_mmal_port_name_update
.subsections_via_symbols
