	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sahara_aes_key_hdr
_sahara_aes_key_hdr:                    ## @sahara_aes_key_hdr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_SAHARA_HDR_BASE@GOTPCREL(%rip), %rax
	movq	_SAHARA_HDR_SKHA_ALG_AES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_SAHARA_HDR_FORM_KEY@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_SAHARA_HDR_LLO@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_SAHARA_HDR_CHA_SKHA@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_SAHARA_HDR_PARITY_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%edx, %ecx
	movl	(%rdi), %esi
	movq	_FLAGS_CBC@GOTPCREL(%rip), %rax
	movq	_SAHARA_HDR_SKHA_MODE_CBC@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	%ecx, %edi
	xorl	%edx, %edi
	testl	%esi, (%rax)
	cmovel	%ecx, %edi
	movq	_FLAGS_ENCRYPT@GOTPCREL(%rip), %rcx
	movq	_SAHARA_HDR_SKHA_OP_ENC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%edi, %eax
	xorl	%edx, %eax
	testl	%esi, (%rcx)
	cmovel	%edi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SAHARA_HDR_BASE,4,2            ## @SAHARA_HDR_BASE
	.comm	_SAHARA_HDR_SKHA_ALG_AES,4,2    ## @SAHARA_HDR_SKHA_ALG_AES
	.comm	_SAHARA_HDR_FORM_KEY,4,2        ## @SAHARA_HDR_FORM_KEY
	.comm	_SAHARA_HDR_LLO,4,2             ## @SAHARA_HDR_LLO
	.comm	_SAHARA_HDR_CHA_SKHA,4,2        ## @SAHARA_HDR_CHA_SKHA
	.comm	_SAHARA_HDR_PARITY_BIT,4,2      ## @SAHARA_HDR_PARITY_BIT
	.comm	_FLAGS_CBC,4,2                  ## @FLAGS_CBC
	.comm	_SAHARA_HDR_SKHA_MODE_CBC,4,2   ## @SAHARA_HDR_SKHA_MODE_CBC
	.comm	_FLAGS_ENCRYPT,4,2              ## @FLAGS_ENCRYPT
	.comm	_SAHARA_HDR_SKHA_OP_ENC,4,2     ## @SAHARA_HDR_SKHA_OP_ENC
	.no_dead_strip	_sahara_aes_key_hdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sahara_aes_key_hdr
_sahara_aes_key_hdr:                    ; @sahara_aes_key_hdr
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _SAHARA_HDR_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SAHARA_HDR_BASE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SAHARA_HDR_SKHA_ALG_AES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SAHARA_HDR_SKHA_ALG_AES@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _SAHARA_HDR_FORM_KEY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SAHARA_HDR_FORM_KEY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _SAHARA_HDR_LLO@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SAHARA_HDR_LLO@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _SAHARA_HDR_CHA_SKHA@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SAHARA_HDR_CHA_SKHA@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _SAHARA_HDR_PARITY_BIT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SAHARA_HDR_PARITY_BIT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w10, [x0]
Lloh18:
	adrp	x11, _FLAGS_CBC@GOTPAGE
Lloh19:
	ldr	x11, [x11, _FLAGS_CBC@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
Lloh21:
	adrp	x12, _SAHARA_HDR_SKHA_MODE_CBC@GOTPAGE
Lloh22:
	ldr	x12, [x12, _SAHARA_HDR_SKHA_MODE_CBC@GOTPAGEOFF]
Lloh23:
	ldr	w12, [x12]
	orr	w12, w12, w8
	eor	w12, w12, w9
	tst	w11, w10
	csel	w8, w8, w12, eq
Lloh24:
	adrp	x11, _FLAGS_ENCRYPT@GOTPAGE
Lloh25:
	ldr	x11, [x11, _FLAGS_ENCRYPT@GOTPAGEOFF]
Lloh26:
	ldr	w11, [x11]
Lloh27:
	adrp	x12, _SAHARA_HDR_SKHA_OP_ENC@GOTPAGE
Lloh28:
	ldr	x12, [x12, _SAHARA_HDR_SKHA_OP_ENC@GOTPAGEOFF]
Lloh29:
	ldr	w12, [x12]
	orr	w12, w8, w12
	eor	w9, w12, w9
	tst	w11, w10
	csel	w0, w8, w9, eq
	ret
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SAHARA_HDR_BASE,4,2            ; @SAHARA_HDR_BASE
	.comm	_SAHARA_HDR_SKHA_ALG_AES,4,2    ; @SAHARA_HDR_SKHA_ALG_AES
	.comm	_SAHARA_HDR_FORM_KEY,4,2        ; @SAHARA_HDR_FORM_KEY
	.comm	_SAHARA_HDR_LLO,4,2             ; @SAHARA_HDR_LLO
	.comm	_SAHARA_HDR_CHA_SKHA,4,2        ; @SAHARA_HDR_CHA_SKHA
	.comm	_SAHARA_HDR_PARITY_BIT,4,2      ; @SAHARA_HDR_PARITY_BIT
	.comm	_FLAGS_CBC,4,2                  ; @FLAGS_CBC
	.comm	_SAHARA_HDR_SKHA_MODE_CBC,4,2   ; @SAHARA_HDR_SKHA_MODE_CBC
	.comm	_FLAGS_ENCRYPT,4,2              ; @FLAGS_ENCRYPT
	.comm	_SAHARA_HDR_SKHA_OP_ENC,4,2     ; @SAHARA_HDR_SKHA_OP_ENC
	.no_dead_strip	_sahara_aes_key_hdr
.subsections_via_symbols
