	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function HEADER_StoreHDItemInHeader
_HEADER_StoreHDItemInHeader:            ## @HEADER_StoreHDItemInHeader
	.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	%rcx, %r14
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	_HDI_UNSUPPORTED_FIELDS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	%ebx, %esi
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_FIXME
LBB0_2:
	movq	_HDI_BITMAP@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	movl	28(%r15), %eax
	movl	%eax, 36(%r12)
LBB0_4:
	movq	_HDI_FORMAT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.5:
	movl	24(%r15), %eax
	movl	%eax, 32(%r12)
LBB0_6:
	movq	_HDI_LPARAM@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.7:
	movl	20(%r15), %eax
	movl	%eax, 28(%r12)
LBB0_8:
	movq	_HDI_WIDTH@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.9:
	movl	16(%r15), %eax
	movl	%eax, 24(%r12)
LBB0_10:
	movq	_HDI_IMAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ebx, %eax
	je	LBB0_14
## %bb.11:
	movq	(%r15), %rcx
	movq	%rcx, (%r12)
	movq	_I_IMAGECALLBACK@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_13
## %bb.12:
	orl	%eax, 8(%r12)
	jmp	LBB0_14
LBB0_13:
	notl	%eax
	andl	%eax, 8(%r12)
LBB0_14:
	movq	_HDI_TEXT@GOTPCREL(%rip), %r13
	testl	%ebx, (%r13)
	je	LBB0_21
## %bb.15:
	movq	16(%r12), %rdi
	callq	_heap_free
	movq	$0, 16(%r12)
	movq	8(%r15), %rax
	movq	_LPSTR_TEXTCALLBACKW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_20
## %bb.16:
	leaq	16(%r12), %rdi
	testq	%rax, %rax
	leaq	_HEADER_StoreHDItemInHeader.emptyString(%rip), %rsi
	cmovneq	%rax, %rsi
	testq	%r14, %r14
	je	LBB0_18
## %bb.17:
	callq	_Str_SetPtrW
	jmp	LBB0_19
LBB0_20:
	movl	(%r13), %eax
	orl	%eax, 8(%r12)
	jmp	LBB0_21
LBB0_18:
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_Str_SetPtrAtoW
LBB0_19:
	movl	(%r13), %eax
	notl	%eax
	andl	%eax, 8(%r12)
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDI_UNSUPPORTED_FIELDS,4,2     ## @HDI_UNSUPPORTED_FIELDS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported header fields %x\n"

	.comm	_HDI_BITMAP,4,2                 ## @HDI_BITMAP
	.comm	_HDI_FORMAT,4,2                 ## @HDI_FORMAT
	.comm	_HDI_LPARAM,4,2                 ## @HDI_LPARAM
	.comm	_HDI_WIDTH,4,2                  ## @HDI_WIDTH
	.comm	_HDI_IMAGE,4,2                  ## @HDI_IMAGE
	.comm	_I_IMAGECALLBACK,8,3            ## @I_IMAGECALLBACK
	.comm	_HDI_TEXT,4,2                   ## @HDI_TEXT
	.comm	_LPSTR_TEXTCALLBACKW,8,3        ## @LPSTR_TEXTCALLBACKW
	.section	__TEXT,__const
	.p2align	2                               ## @HEADER_StoreHDItemInHeader.emptyString
_HEADER_StoreHDItemInHeader.emptyString:
	.space	4

	.no_dead_strip	_HEADER_StoreHDItemInHeader
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function HEADER_StoreHDItemInHeader
_HEADER_StoreHDItemInHeader:            ; @HEADER_StoreHDItemInHeader
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _HDI_UNSUPPORTED_FIELDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDI_UNSUPPORTED_FIELDS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ands	w1, w8, w1
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
LBB0_2:
Lloh5:
	adrp	x8, _HDI_BITMAP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HDI_BITMAP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x21, #28]
	str	w8, [x19, #36]
LBB0_4:
Lloh8:
	adrp	x8, _HDI_FORMAT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HDI_FORMAT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_6
; %bb.5:
	ldr	w8, [x21, #24]
	str	w8, [x19, #32]
LBB0_6:
Lloh11:
	adrp	x8, _HDI_LPARAM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HDI_LPARAM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_8
; %bb.7:
	ldr	w8, [x21, #20]
	str	w8, [x19, #28]
LBB0_8:
Lloh14:
	adrp	x8, _HDI_WIDTH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HDI_WIDTH@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_10
; %bb.9:
	ldr	w8, [x21, #16]
	str	w8, [x19, #24]
LBB0_10:
Lloh17:
	adrp	x8, _HDI_IMAGE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HDI_IMAGE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_15
; %bb.11:
	ldr	x9, [x21]
	str	x9, [x19]
Lloh20:
	adrp	x10, _I_IMAGECALLBACK@GOTPAGE
Lloh21:
	ldr	x10, [x10, _I_IMAGECALLBACK@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_13
; %bb.12:
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	b	LBB0_14
LBB0_13:
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
LBB0_14:
	str	w8, [x19, #8]
LBB0_15:
Lloh23:
	adrp	x23, _HDI_TEXT@GOTPAGE
Lloh24:
	ldr	x23, [x23, _HDI_TEXT@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w22
	b.eq	LBB0_23
; %bb.16:
	mov	x22, x19
	ldr	x0, [x22, #16]!
	bl	_heap_free
	str	xzr, [x22]
	ldr	x8, [x21, #8]
Lloh25:
	adrp	x9, _LPSTR_TEXTCALLBACKW@GOTPAGE
Lloh26:
	ldr	x9, [x9, _LPSTR_TEXTCALLBACKW@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_19
; %bb.17:
Lloh28:
	adrp	x9, _HEADER_StoreHDItemInHeader.emptyString@PAGE
Lloh29:
	add	x9, x9, _HEADER_StoreHDItemInHeader.emptyString@PAGEOFF
	cmp	x8, #0
	csel	x1, x9, x8, eq
	mov	x0, x22
	cbz	x20, LBB0_20
; %bb.18:
	bl	_Str_SetPtrW
	b	LBB0_21
LBB0_19:
	ldr	w8, [x23]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	b	LBB0_22
LBB0_20:
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_Str_SetPtrAtoW
LBB0_21:
	ldr	w8, [x23]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
LBB0_22:
	str	w8, [x19, #8]
LBB0_23:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_HDI_UNSUPPORTED_FIELDS,4,2     ; @HDI_UNSUPPORTED_FIELDS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported header fields %x\n"

	.comm	_HDI_BITMAP,4,2                 ; @HDI_BITMAP
	.comm	_HDI_FORMAT,4,2                 ; @HDI_FORMAT
	.comm	_HDI_LPARAM,4,2                 ; @HDI_LPARAM
	.comm	_HDI_WIDTH,4,2                  ; @HDI_WIDTH
	.comm	_HDI_IMAGE,4,2                  ; @HDI_IMAGE
	.comm	_I_IMAGECALLBACK,8,3            ; @I_IMAGECALLBACK
	.comm	_HDI_TEXT,4,2                   ; @HDI_TEXT
	.comm	_LPSTR_TEXTCALLBACKW,8,3        ; @LPSTR_TEXTCALLBACKW
	.section	__TEXT,__const
	.p2align	2                               ; @HEADER_StoreHDItemInHeader.emptyString
_HEADER_StoreHDItemInHeader.emptyString:
	.space	4

	.no_dead_strip	_HEADER_StoreHDItemInHeader
.subsections_via_symbols
