	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exif_decode_tag
_exif_decode_tag:                       ## @exif_decode_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	cmpl	$2, %ecx
	jg	LBB0_11
## %bb.1:
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	leaq	-52(%rbp), %r8
	leaq	-56(%rbp), %r9
	movq	%rsi, %rdi
	movl	%r15d, %esi
	callq	_ff_tread_tag
	movq	%r13, %rdi
	callq	_bytestream2_tell
	testl	%eax, %eax
	je	LBB0_10
## %bb.2:
	movl	-44(%rbp), %edi
	callq	_ff_tis_ifd
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	incl	%r14d
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	callq	_ff_exif_decode_ifd
	jmp	LBB0_9
LBB0_4:
	movl	-44(%rbp), %edi
	callq	_exif_get_tag_name
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:
	movl	-52(%rbp), %esi
	movl	-48(%rbp), %edx
	movq	%r12, %rdi
	movq	%rax, %rcx
	xorl	%r8d, %r8d
	movq	%r13, %r9
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	%r15
	callq	_exif_add_metadata
	addq	$16, %rsp
LBB0_9:
	movl	%eax, %ebx
LBB0_10:
	movl	-56(%rbp), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_bytestream2_seek
LBB0_11:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	$7, %edi
	callq	_av_malloc
	movq	%rax, -72(%rbp)
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, %rbx
	movl	-44(%rbp), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rdi
	movl	$7, %esi
	callq	_snprintf
	movl	-52(%rbp), %esi
	movl	-48(%rbp), %edx
	movq	%r12, %rdi
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	movq	%r13, %r9
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	%r15
	callq	_exif_add_metadata
	addq	$16, %rsp
	movl	%eax, %ebx
	leaq	-72(%rbp), %rdi
	callq	_av_freep
	jmp	LBB0_10
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0x%04X"

	.no_dead_strip	_exif_decode_tag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exif_decode_tag
_exif_decode_tag:                       ; @exif_decode_tag
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cmp	w3, #2
	b.le	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_10
LBB0_2:
	mov	x20, x4
	mov	x23, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	add	x2, sp, #24
	add	x3, sp, #16
	add	x4, sp, #20
	add	x5, sp, #28
	mov	x0, x1
	mov	x1, x21
	bl	_ff_tread_tag
	mov	x0, x19
	bl	_bytestream2_tell
	cbz	w0, LBB0_5
; %bb.3:
	ldr	w0, [sp, #24]
	bl	_ff_tis_ifd
	cbz	w0, LBB0_6
; %bb.4:
	add	w3, w23, #1
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	mov	x4, x20
	bl	_ff_exif_decode_ifd
	b	LBB0_8
LBB0_5:
	ldr	w1, [sp, #28]
Lloh0:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_bytestream2_seek
	mov	w20, #0
	b	LBB0_10
LBB0_6:
	ldr	w0, [sp, #24]
	bl	_exif_get_tag_name
	cbz	x0, LBB0_11
; %bb.7:
	mov	x3, x0
	ldp	w2, w1, [sp, #16]
	mov	x0, x22
	mov	x4, #0
	mov	x5, x19
	mov	x6, x21
	mov	x7, x20
	bl	_exif_add_metadata
LBB0_8:
	mov	x20, x0
LBB0_9:
	ldr	w1, [sp, #28]
Lloh3:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_bytestream2_seek
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
	mov	w0, #7
	bl	_av_malloc
	str	x0, [sp, #8]
	cbz	x0, LBB0_13
; %bb.12:
	mov	x23, x0
	ldr	w3, [sp, #24]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #7
	bl	_snprintf
	ldp	w2, w1, [sp, #16]
	mov	x0, x22
	mov	x3, x23
	mov	x4, #0
	mov	x5, x19
	mov	x6, x21
	mov	x7, x20
	bl	_exif_add_metadata
	mov	x20, x0
	add	x0, sp, #8
	bl	_av_freep
	b	LBB0_9
LBB0_13:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x20, x0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0x%04X"

	.no_dead_strip	_exif_decode_tag
.subsections_via_symbols
