	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_exif_tag
_add_exif_tag:                          ## @add_exif_tag
	.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, %r15
	movq	_MAX_EXIF_PAYLOAD_LENGTH@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	addl	$16, %edi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_vcos_assert
	movq	8(%r15), %rdi
	callq	_vcos_assert
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	movl	$61, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_strlen
	movl	(%r12), %edx
	cmpl	%edx, %eax
	jge	LBB0_3
## %bb.5:
	movq	_MMAL_PARAMETER_EXIF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	8(%r14), %rdi
	decl	%edx
	movq	%rbx, %rsi
	callq	_strncpy
	movq	8(%r14), %rdi
	callq	_strlen
	addl	$16, %eax
	movl	%eax, (%r14)
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_mmal_port_parameter_set
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_free
	movl	%ebx, %eax
	jmp	LBB0_4
LBB0_3:
	movq	_MMAL_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_EXIF_PAYLOAD_LENGTH,4,2    ## @MAX_EXIF_PAYLOAD_LENGTH
	.comm	_MMAL_EINVAL,4,2                ## @MMAL_EINVAL
	.comm	_MMAL_PARAMETER_EXIF,4,2        ## @MMAL_PARAMETER_EXIF
	.no_dead_strip	_add_exif_tag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_exif_tag
_add_exif_tag:                          ; @add_exif_tag
	.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	x19, x0
Lloh0:
	adrp	x22, _MAX_EXIF_PAYLOAD_LENGTH@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAX_EXIF_PAYLOAD_LENGTH@GOTPAGEOFF]
	ldr	w8, [x22]
	add	w0, w8, #16
	mov	w1, #1
	bl	_calloc
	mov	x20, x0
	mov	x0, x19
	bl	_vcos_assert
	ldr	x0, [x19, #8]
	bl	_vcos_assert
	cbz	x21, LBB0_4
; %bb.1:
	mov	x0, x21
	mov	w1, #61
	bl	_strchr
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_strlen
	ldr	w8, [x22]
	cmp	w0, w8
	b.ge	LBB0_4
; %bb.3:
Lloh2:
	adrp	x9, _MMAL_PARAMETER_EXIF@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MMAL_PARAMETER_EXIF@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	str	w9, [x20, #4]
	ldr	x0, [x20, #8]
	sub	w2, w8, #1
	mov	x1, x21
	bl	_strncpy
	ldr	x0, [x20, #8]
	bl	_strlen
	add	w8, w0, #16
	str	w8, [x20]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_mmal_port_parameter_set
	mov	x19, x0
	mov	x0, x20
	bl	_free
	mov	x0, x19
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _MMAL_EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MMAL_EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
LBB0_5:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_EXIF_PAYLOAD_LENGTH,4,2    ; @MAX_EXIF_PAYLOAD_LENGTH
	.comm	_MMAL_EINVAL,4,2                ; @MMAL_EINVAL
	.comm	_MMAL_PARAMETER_EXIF,4,2        ; @MMAL_PARAMETER_EXIF
	.no_dead_strip	_add_exif_tag
.subsections_via_symbols
