	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_table_redirector_legacy_attrib
_write_table_redirector_legacy_attrib:  ## @write_table_redirector_legacy_attrib
	.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	%rdi, %r12
	movq	24(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %r15
	movl	8(%rdi), %edi
	movq	_AV_DICT_IGNORE_SUFFIX@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	callq	_av_dict_get
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	xorl	%r13d, %r13d
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_avio_wl64
	movq	(%rbx), %rdi
	callq	_metadata_header_size
	movq	%r15, %r12
	movq	%r14, %r15
	movq	%rax, %r14
	movl	8(%rbx), %edi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	%r13d, %r14d
	leal	(%r14,%rax,2), %r13d
	addl	$2, %r13d
	movq	%r15, %r14
	movq	%r12, %r15
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	8(%r12), %edi
	movl	(%r14), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_av_dict_get
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
LBB0_3:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmpq	$0, 8(%rdx)
	je	LBB0_4
## %bb.5:
	movq	(%r12), %rax
	movq	(%rdx), %rcx
	movq	(%rax,%rcx,8), %r14
	movq	%rdx, %r12
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_avio_wl64
	leaq	L_.str.1(%rip), %rdi
	callq	_metadata_header_size
	movq	%rax, %rbx
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_av_dict_get
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_attachment_value_size
	addl	%eax, %ebx
	addl	%r13d, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_avio_wl64
	leaq	L_.str.3(%rip), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_metadata_header_size           ## TAILCALL
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_AV_DICT_IGNORE_SUFFIX,4,2      ## @AV_DICT_IGNORE_SUFFIX
L_.str.1:                               ## @.str.1
	.asciz	"WM/Picture"

L_.str.2:                               ## @.str.2
	.asciz	"title"

L_.str.3:                               ## @.str.3
	.asciz	"WM/MediaThumbType"

	.no_dead_strip	_write_table_redirector_legacy_attrib
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_table_redirector_legacy_attrib
_write_table_redirector_legacy_attrib:  ; @write_table_redirector_legacy_attrib
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x0
	ldp	x19, x20, [x0, #16]
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x26, _AV_DICT_IGNORE_SUFFIX@GOTPAGE
Lloh1:
	ldr	x26, [x26, _AV_DICT_IGNORE_SUFFIX@GOTPAGEOFF]
	ldr	w3, [x26]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	bl	_av_dict_get
	cbz	x0, LBB0_5
; %bb.1:
	mov	x23, x0
	mov	w21, #0
Lloh4:
	adrp	x24, l_.str@PAGE
Lloh5:
	add	x24, x24, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_avio_wl64
	ldr	x0, [x23]
	bl	_metadata_header_size
	mov	x25, x0
	ldr	w0, [x23, #8]
	bl	_strlen
	add	w8, w21, w25
	add	w8, w8, w0, lsl #1
	add	w21, w8, #2
	ldr	w0, [x22, #8]
	ldr	w3, [x26]
	mov	x1, x24
	mov	x2, x23
	bl	_av_dict_get
	mov	x23, x0
	cbnz	x0, LBB0_2
; %bb.3:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_6
LBB0_4:
	ldr	x8, [x22]
	ldr	x9, [x20]
	ldr	x23, [x8, x9, lsl #3]
	mov	x0, x19
	mov	x1, x21
	bl	_avio_wl64
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_metadata_header_size
	mov	x22, x0
	ldr	w0, [x23]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, #0
	mov	w3, #0
	bl	_av_dict_get
	mov	x1, x0
	mov	x0, x20
	bl	_attachment_value_size
	add	w8, w0, w22
	add	w1, w21, w8
	mov	x0, x19
	bl	_avio_wl64
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_metadata_header_size
LBB0_5:
	mov	w21, #0
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_4
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_AV_DICT_IGNORE_SUFFIX,4,2      ; @AV_DICT_IGNORE_SUFFIX
l_.str.1:                               ; @.str.1
	.asciz	"WM/Picture"

l_.str.2:                               ; @.str.2
	.asciz	"title"

l_.str.3:                               ; @.str.3
	.asciz	"WM/MediaThumbType"

	.no_dead_strip	_write_table_redirector_legacy_attrib
.subsections_via_symbols
