	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_auth_code                ## -- Begin function check_auth_code
	.p2align	4, 0x90
_check_auth_code:                       ## @check_auth_code
	.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	%rcx, %r14
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	%edx, %edi
	movq	%rcx, %rsi
	callq	_get_account
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_strlen
	movq	_verbosity@GOTPCREL(%rip), %rcx
	cmpl	$2, (%rcx)
	jl	LBB0_5
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testq	%rbx, %rbx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rcx
	movl	%eax, %ebx
	movl	(%rcx), %eax
	jmp	LBB0_4
LBB0_3:
	movl	%eax, %ebx
	xorl	%eax, %eax
LBB0_4:
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	movq	%r12, %rcx
	movl	%r13d, %r8d
	movq	%r14, %r9
	callq	_fprintf
	movl	%ebx, %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_5:
	movl	$-1, %edx
	cmpl	$4095, %eax                     ## imm = 0xFFF
	jg	LBB0_20
## %bb.6:
	movq	_MAX_ACCOUNT_TYPE@GOTPCREL(%rip), %rcx
	cmpl	%r13d, (%rcx)
	jb	LBB0_20
## %bb.7:
	leaq	_check_auth_code.temp(%rip), %rdi
	movq	%r12, %rsi
	movl	%eax, %r12d
	movl	%eax, %edx
	callq	_memcpy
	testq	%r14, %r14
	movq	%r15, %r14
	je	LBB0_12
## %bb.8:
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.9:
	movl	(%rbx), %ecx
	leaq	_check_auth_code.temp(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %r15d
	movl	%r12d, %edx
	callq	_check_signature
	testq	%rax, %rax
	jne	LBB0_19
## %bb.10:
	movl	4(%rbx), %ecx
	leaq	_check_auth_code.temp(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_check_signature
	testq	%rax, %rax
	jne	LBB0_11
LBB0_12:
	movq	_AccTypes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r13d, %rcx
	movq	(%rax,%rcx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.13:
	movl	(%rbx), %ecx
	leaq	_check_auth_code.temp(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_check_signature
	testq	%rax, %rax
	jne	LBB0_19
## %bb.14:
	movl	4(%rbx), %ecx
	leaq	_check_auth_code.temp(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_check_signature
	testq	%rax, %rax
	je	LBB0_17
LBB0_11:
	addq	$4, %rbx
LBB0_19:
	movl	(%rbx), %edx
	jmp	LBB0_20
LBB0_16:
	movl	$-1, %edx
LBB0_20:
	movl	%edx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	8(%rbx), %ecx
	leaq	_check_auth_code.temp(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_check_signature
	testq	%rax, %rax
	movl	$-1, %edx
	je	LBB0_20
## %bb.18:
	addq	$8, %rbx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_check_auth_code.temp,8192,4 ## @check_auth_code.temp
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"check_auth_code: signature='%.32s', signed_string='%s', acc_type=%d, acc_id=%lld, secret=%016llx\n"

	.comm	_MAX_ACCOUNT_TYPE,4,2           ## @MAX_ACCOUNT_TYPE
	.comm	_AccTypes,8,3                   ## @AccTypes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_auth_code                ; -- Begin function check_auth_code
	.p2align	2
_check_auth_code:                       ; @check_auth_code
	.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	x23, x3
	mov	x22, x2
	mov	x24, x1
	mov	x20, x0
	mov	x0, x2
	mov	x1, x3
	bl	_get_account
	mov	x19, x0
	mov	x0, x24
	bl	_strlen
	mov	x21, x0
Lloh0:
	adrp	x8, _verbosity@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	cbz	x19, LBB0_3
; %bb.2:
	ldr	w6, [x19]
	b	LBB0_4
LBB0_3:
	mov	w6, #0
LBB0_4:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x24
	mov	x4, x22
	mov	x5, x23
	bl	_fprintf
LBB0_5:
	mov	w0, #-1
	cmp	w21, #4095
	b.gt	LBB0_18
; %bb.6:
Lloh8:
	adrp	x8, _MAX_ACCOUNT_TYPE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAX_ACCOUNT_TYPE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w22
	b.lo	LBB0_18
; %bb.7:
Lloh11:
	adrp	x0, _check_auth_code.temp@PAGE
Lloh12:
	add	x0, x0, _check_auth_code.temp@PAGEOFF
	mov	x1, x24
	mov	x2, x21
	bl	_memcpy
	cbz	x23, LBB0_11
; %bb.8:
	cbz	x19, LBB0_11
; %bb.9:
	ldr	w3, [x19]
Lloh13:
	adrp	x1, _check_auth_code.temp@PAGE
Lloh14:
	add	x1, x1, _check_auth_code.temp@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_check_signature
	cbnz	x0, LBB0_16
; %bb.10:
	ldr	w3, [x19, #4]!
Lloh15:
	adrp	x1, _check_auth_code.temp@PAGE
Lloh16:
	add	x1, x1, _check_auth_code.temp@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_check_signature
	cbnz	x0, LBB0_16
LBB0_11:
Lloh17:
	adrp	x8, _AccTypes@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AccTypes@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	x19, [x8, w22, sxtw #3]
	cbz	x19, LBB0_17
; %bb.12:
	ldr	w3, [x19]
Lloh20:
	adrp	x1, _check_auth_code.temp@PAGE
Lloh21:
	add	x1, x1, _check_auth_code.temp@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_check_signature
	cbnz	x0, LBB0_16
; %bb.13:
	mov	x22, x19
	ldr	w3, [x22, #4]!
Lloh22:
	adrp	x1, _check_auth_code.temp@PAGE
Lloh23:
	add	x1, x1, _check_auth_code.temp@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_check_signature
	cbz	x0, LBB0_15
; %bb.14:
	mov	x19, x22
	b	LBB0_16
LBB0_15:
	ldr	w3, [x19, #8]!
Lloh24:
	adrp	x1, _check_auth_code.temp@PAGE
Lloh25:
	add	x1, x1, _check_auth_code.temp@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_check_signature
	cbz	x0, LBB0_17
LBB0_16:
	ldr	w0, [x19]
	b	LBB0_18
LBB0_17:
	mov	w0, #-1
LBB0_18:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_check_auth_code.temp,8192,0 ; @check_auth_code.temp
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"check_auth_code: signature='%.32s', signed_string='%s', acc_type=%d, acc_id=%lld, secret=%016llx\n"

	.comm	_MAX_ACCOUNT_TYPE,4,2           ; @MAX_ACCOUNT_TYPE
	.comm	_AccTypes,8,3                   ; @AccTypes
.subsections_via_symbols
