	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ico_check_attributes
_ico_check_attributes:                  ## @ico_check_attributes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rsi), %rdi
	movq	_AV_CODEC_ID_BMP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_11
## %bb.1:
	movq	8(%rsi), %rax
	movq	_AV_PIX_FMT_PAL8@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, %rax
	jne	LBB0_2
## %bb.8:
	movq	_AV_PIX_FMT_RGB32@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_AV_PIX_FMT_BGRA@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rcx
	je	LBB0_3
## %bb.9:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_10
LBB0_11:
	movq	_AV_CODEC_ID_PNG@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_14
## %bb.12:
	movq	8(%rsi), %rax
	movq	_AV_PIX_FMT_RGBA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.13:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_10
LBB0_2:
	movq	_AV_PIX_FMT_BGRA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_3:
	cmpq	%rdx, %rax
	je	LBB0_18
## %bb.4:
	movq	_AV_PIX_FMT_RGB555LE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_18
## %bb.5:
	movq	_AV_PIX_FMT_BGR24@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_18
## %bb.6:
	cmpq	%rcx, %rax
	je	LBB0_18
## %bb.7:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_10:
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_21
LBB0_18:
	movl	16(%rsi), %ecx
	movl	20(%rsi), %r8d
	cmpl	$256, %ecx                      ## imm = 0x100
	jg	LBB0_20
## %bb.19:
	cmpl	$257, %r8d                      ## imm = 0x101
	jge	LBB0_20
## %bb.22:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_14:
	callq	_avcodec_descriptor_get
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	movq	(%rax), %rcx
	jmp	LBB0_17
LBB0_20:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_21
LBB0_15:
	leaq	L_.str.4(%rip), %rcx
LBB0_17:
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_21:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_BMP,8,3            ## @AV_CODEC_ID_BMP
	.comm	_AV_PIX_FMT_PAL8,8,3            ## @AV_PIX_FMT_PAL8
	.comm	_AV_PIX_FMT_RGB32,8,3           ## @AV_PIX_FMT_RGB32
	.comm	_AV_PIX_FMT_BGRA,8,3            ## @AV_PIX_FMT_BGRA
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wrong endianness for bmp pixel format\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AV_PIX_FMT_RGB555LE,8,3        ## @AV_PIX_FMT_RGB555LE
	.comm	_AV_PIX_FMT_BGR24,8,3           ## @AV_PIX_FMT_BGR24
L_.str.1:                               ## @.str.1
	.asciz	"BMP must be 1bit, 4bit, 8bit, 16bit, 24bit, or 32bit\n"

	.comm	_AV_CODEC_ID_PNG,8,3            ## @AV_CODEC_ID_PNG
	.comm	_AV_PIX_FMT_RGBA,8,3            ## @AV_PIX_FMT_RGBA
L_.str.2:                               ## @.str.2
	.asciz	"PNG in ico requires pixel format to be rgba\n"

L_.str.3:                               ## @.str.3
	.asciz	"Unsupported codec %s\n"

L_.str.4:                               ## @.str.4
	.space	1

L_.str.5:                               ## @.str.5
	.asciz	"Unsupported dimensions %dx%d (dimensions cannot exceed 256x256)\n"

	.no_dead_strip	_ico_check_attributes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ico_check_attributes
_ico_check_attributes:                  ; @ico_check_attributes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x0, [x1]
Lloh0:
	adrp	x8, _AV_CODEC_ID_BMP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_CODEC_ID_BMP@GOTPAGEOFF]
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loh26:
	adrp	x2, l_.str.2@PAGE
Lloh27:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_18
LBB0_7:
Lloh28:
	adrp	x10, _AV_PIX_FMT_BGRA@GOTPAGE
Lloh29:
	ldr	x10, [x10, _AV_PIX_FMT_BGRA@GOTPAGEOFF]
Lloh30:
	ldr	x10, [x10]
LBB0_8:
Lloh31:
	adrp	x11, _AV_PIX_FMT_RGB555LE@GOTPAGE
Lloh32:
	ldr	x11, [x11, _AV_PIX_FMT_RGB555LE@GOTPAGEOFF]
Lloh33:
	adrp	x12, _AV_PIX_FMT_BGR24@GOTPAGE
Lloh34:
	ldr	x12, [x12, _AV_PIX_FMT_BGR24@GOTPAGEOFF]
Lloh35:
	ldr	x11, [x11]
Lloh36:
	ldr	x12, [x12]
	cmp	x8, x9
	ccmp	x8, x11, #4, ne
	ccmp	x8, x12, #4, ne
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_14
LBB0_9:
	ldp	w8, w9, [x1, #16]
	cmp	w8, #256
	b.gt	LBB0_15
; %bb.10:
	cmp	w9, #257
	b.ge	LBB0_15
; %bb.11:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_12:
	bl	_avcodec_descriptor_get
Lloh37:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh38:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	cbz	x0, LBB0_16
; %bb.13:
	ldr	x8, [x0]
	b	LBB0_17
LBB0_14:
Lloh40:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh41:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
Lloh43:
	adrp	x2, l_.str.1@PAGE
Lloh44:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_18
LBB0_15:
Lloh45:
	adrp	x10, _AV_LOG_ERROR@GOTPAGE
Lloh46:
	ldr	x10, [x10, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x10]
	stp	x8, x9, [sp]
Lloh48:
	adrp	x2, l_.str.5@PAGE
Lloh49:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_18
LBB0_16:
Lloh50:
	adrp	x8, l_.str.4@PAGE
Lloh51:
	add	x8, x8, l_.str.4@PAGEOFF
LBB0_17:
	str	x8, [sp]
Lloh52:
	adrp	x2, l_.str.3@PAGE
Lloh53:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_18:
	mov	x0, x19
	bl	_av_log
Lloh54:
	adrp	x8, _EINVAL@GOTPAGE
Lloh55:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh35
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_BMP,8,3            ; @AV_CODEC_ID_BMP
	.comm	_AV_PIX_FMT_PAL8,8,3            ; @AV_PIX_FMT_PAL8
	.comm	_AV_PIX_FMT_RGB32,8,3           ; @AV_PIX_FMT_RGB32
	.comm	_AV_PIX_FMT_BGRA,8,3            ; @AV_PIX_FMT_BGRA
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wrong endianness for bmp pixel format\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AV_PIX_FMT_RGB555LE,8,3        ; @AV_PIX_FMT_RGB555LE
	.comm	_AV_PIX_FMT_BGR24,8,3           ; @AV_PIX_FMT_BGR24
l_.str.1:                               ; @.str.1
	.asciz	"BMP must be 1bit, 4bit, 8bit, 16bit, 24bit, or 32bit\n"

	.comm	_AV_CODEC_ID_PNG,8,3            ; @AV_CODEC_ID_PNG
	.comm	_AV_PIX_FMT_RGBA,8,3            ; @AV_PIX_FMT_RGBA
l_.str.2:                               ; @.str.2
	.asciz	"PNG in ico requires pixel format to be rgba\n"

l_.str.3:                               ; @.str.3
	.asciz	"Unsupported codec %s\n"

l_.str.4:                               ; @.str.4
	.space	1

l_.str.5:                               ; @.str.5
	.asciz	"Unsupported dimensions %dx%d (dimensions cannot exceed 256x256)\n"

	.no_dead_strip	_ico_check_attributes
.subsections_via_symbols
