	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function verify_css_header
_verify_css_header:                     ## @verify_css_header
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	24(%rsi), %edx
	movq	_CSS_MODULE_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_invalid_header
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movl	20(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_invalid_header
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	movl	16(%rbx), %edx
	movq	_CSS_HEADER_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_invalid_header
	testq	%rax, %rax
	jne	LBB0_8
## %bb.3:
	movl	12(%rbx), %edx
	movq	_CSS_MODULE_VENDOR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_invalid_header
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:
	movl	8(%rbx), %edx
	movq	_KEY_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_invalid_header
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	movl	4(%rbx), %edx
	movl	(%r15), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_invalid_header
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movl	(%rbx), %edx
	movq	_EXPONENT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_invalid_header
	testq	%rax, %rax
	je	LBB0_7
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"module_type"

	.comm	_CSS_MODULE_TYPE,4,2            ## @CSS_MODULE_TYPE
L_.str.1:                               ## @.str.1
	.asciz	"header_len"

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

	.comm	_CSS_HEADER_VERSION,4,2         ## @CSS_HEADER_VERSION
L_.str.3:                               ## @.str.3
	.asciz	"module_vendor"

	.comm	_CSS_MODULE_VENDOR,4,2          ## @CSS_MODULE_VENDOR
L_.str.4:                               ## @.str.4
	.asciz	"key_size"

	.comm	_KEY_SIZE,4,2                   ## @KEY_SIZE
L_.str.5:                               ## @.str.5
	.asciz	"modulus_size"

L_.str.6:                               ## @.str.6
	.asciz	"exponent_size"

	.comm	_EXPONENT_SIZE,4,2              ## @EXPONENT_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_verify_css_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function verify_css_header
_verify_css_header:                     ; @verify_css_header
	.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	x20, x1
	mov	x19, x0
	ldr	w2, [x1, #24]
Lloh0:
	adrp	x8, _CSS_MODULE_TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CSS_MODULE_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_invalid_header
	cbnz	x0, LBB0_7
; %bb.1:
	ldr	w2, [x20, #20]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w3, #1
	bl	_invalid_header
	cbnz	x0, LBB0_7
; %bb.2:
	ldr	w2, [x20, #16]
Lloh7:
	adrp	x8, _CSS_HEADER_VERSION@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CSS_HEADER_VERSION@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_invalid_header
	cbnz	x0, LBB0_7
; %bb.3:
	ldr	w2, [x20, #12]
Lloh12:
	adrp	x8, _CSS_MODULE_VENDOR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CSS_MODULE_VENDOR@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_invalid_header
	cbnz	x0, LBB0_7
; %bb.4:
Lloh17:
	adrp	x21, _KEY_SIZE@GOTPAGE
Lloh18:
	ldr	x21, [x21, _KEY_SIZE@GOTPAGEOFF]
	ldr	w2, [x20, #8]
	ldr	w8, [x21]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w3, w8, #2
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_invalid_header
	cbnz	x0, LBB0_7
; %bb.5:
	ldr	w2, [x20, #4]
	ldr	w8, [x21]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w3, w8, #2
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_invalid_header
	cbnz	x0, LBB0_7
; %bb.6:
Lloh23:
	adrp	x8, _EXPONENT_SIZE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EXPONENT_SIZE@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh25:
	ldr	w8, [x8]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w3, w8, #2
Lloh26:
	adrp	x1, l_.str.6@PAGE
Lloh27:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_invalid_header
	cbz	x0, LBB0_8
LBB0_7:
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"module_type"

	.comm	_CSS_MODULE_TYPE,4,2            ; @CSS_MODULE_TYPE
l_.str.1:                               ; @.str.1
	.asciz	"header_len"

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

	.comm	_CSS_HEADER_VERSION,4,2         ; @CSS_HEADER_VERSION
l_.str.3:                               ; @.str.3
	.asciz	"module_vendor"

	.comm	_CSS_MODULE_VENDOR,4,2          ; @CSS_MODULE_VENDOR
l_.str.4:                               ; @.str.4
	.asciz	"key_size"

	.comm	_KEY_SIZE,4,2                   ; @KEY_SIZE
l_.str.5:                               ; @.str.5
	.asciz	"modulus_size"

l_.str.6:                               ; @.str.6
	.asciz	"exponent_size"

	.comm	_EXPONENT_SIZE,4,2              ; @EXPONENT_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_verify_css_header
.subsections_via_symbols
