	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	-44(%rbp), %rdi
	callq	_krb5_init_context
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%rax, %rdx
	callq	_errx
LBB0_2:
	movq	_tests@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.4:
	leaq	-56(%rbp), %r13
	leaq	L_.str.4(%rip), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$10, %edi
	callq	_putchar
	movl	$1, %r15d
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %edi
	movq	-56(%rbp), %rsi
	callq	_krb5_free_keyblock
	movq	32(%r12), %rdx
	addq	$32, %r12
	testq	%rdx, %rdx
	je	LBB0_16
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
	movq	_KEYTYPE_DES3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_MAXSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	8(%r12), %rax
	movq	%rax, -72(%rbp)
	movl	-44(%rbp), %edi
	movl	24(%r12), %r8d
	movl	28(%r12), %ecx
	leaq	-80(%rbp), %rsi
	movq	%r13, %r9
	callq	_krb5_derive_key
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %edi
	movl	$1, %esi
	movq	%rax, %rdx
	leaq	L_.str.1(%rip), %rcx
	callq	_krb5_err
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax
	movq	8(%rax), %rdi
	movq	16(%r12), %rsi
	movl	(%rax), %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax
	movq	8(%rax), %r15
	leaq	L_str(%rip), %rdi
	callq	_puts
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	-56(%rbp), %rax
	cmpl	$0, (%rax)
	jle	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	incq	%rbx
	movq	-56(%rbp), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	-56(%rbp), %rax
	cmpl	$0, (%rax)
	jle	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r15,%rbx), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	incq	%rbx
	movq	-56(%rbp), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_13
	jmp	LBB0_14
LBB0_3:
	xorl	%r15d, %r15d
LBB0_16:
	movl	-44(%rbp), %edi
	callq	_krb5_free_context
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"krb5_init_context failed: %d"

	.comm	_tests,8,3                      ## @tests
	.comm	_KEYTYPE_DES3,4,2               ## @KEYTYPE_DES3
	.comm	_MAXSIZE,4,2                    ## @MAXSIZE
L_.str.1:                               ## @.str.1
	.asciz	"krb5_derive_key"

L_.str.3:                               ## @.str.3
	.asciz	"should be: "

L_.str.4:                               ## @.str.4
	.asciz	"%02x"

L_.str.5:                               ## @.str.5
	.asciz	"\nresult was: "

L_str:                                  ## @str
	.asciz	"derive_key failed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	add	x0, sp, #44
	bl	_krb5_init_context
	cbz	x0, LBB0_2
; %bb.1:
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_2:
Lloh2:
	adrp	x8, _tests@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tests@GOTPAGEOFF]
Lloh4:
	ldr	x25, [x8]
	ldr	x2, [x25]
	cbz	x2, LBB0_15
; %bb.3:
	mov	w24, #0
Lloh5:
	adrp	x26, _KEYTYPE_DES3@GOTPAGE
Lloh6:
	ldr	x26, [x26, _KEYTYPE_DES3@GOTPAGEOFF]
Lloh7:
	adrp	x27, _MAXSIZE@GOTPAGE
Lloh8:
	ldr	x27, [x27, _MAXSIZE@GOTPAGEOFF]
Lloh9:
	adrp	x19, l_str@PAGE
Lloh10:
	add	x19, x19, l_str@PAGEOFF
Lloh11:
	adrp	x20, l_.str.3@PAGE
Lloh12:
	add	x20, x20, l_.str.3@PAGEOFF
Lloh13:
	adrp	x21, l_.str.4@PAGE
Lloh14:
	add	x21, x21, l_.str.4@PAGEOFF
Lloh15:
	adrp	x22, l_.str.5@PAGE
Lloh16:
	add	x22, x22, l_.str.5@PAGEOFF
Lloh17:
	adrp	x23, l_.str.1@PAGE
Lloh18:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #10
	bl	_putchar
	mov	w24, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [sp, #44]
	ldr	x1, [sp, #8]
	bl	_krb5_free_keyblock
	ldr	x2, [x25, #32]!
	cbz	x2, LBB0_16
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_14 Depth 2
	ldr	w8, [x26]
	str	w8, [sp, #32]
	ldr	w8, [x27]
	str	w8, [sp, #16]
	ldr	x8, [x25, #8]
	str	x8, [sp, #24]
	ldr	w0, [sp, #44]
	ldp	w4, w3, [x25, #24]
	add	x1, sp, #16
	add	x5, sp, #8
	bl	_krb5_derive_key
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x2, x0
	ldr	w0, [sp, #44]
	mov	w1, #1
	mov	x3, x23
	bl	_krb5_err
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #8]
	ldr	x0, [x8, #8]
	ldr	x1, [x25, #16]
	ldr	w2, [x8]
	bl	_memcmp
	cbz	x0, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #8]
	ldr	x24, [x8, #8]
	mov	x0, x19
	bl	_puts
	mov	x0, x20
	bl	_printf
	ldr	x8, [sp, #8]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x28, #0
LBB0_11:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x25, #16]
	ldr	w8, [x8, x28, lsl #2]
	str	x8, [sp]
	mov	x0, x21
	bl	_printf
	add	x28, x28, #1
	ldr	x8, [sp, #8]
	ldrsw	x8, [x8]
	cmp	x28, x8
	b.lt	LBB0_11
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_printf
	ldr	x8, [sp, #8]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x28, #0
LBB0_14:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x24, x28]
	str	x8, [sp]
	mov	x0, x21
	bl	_printf
	add	x28, x28, #1
	ldr	x8, [sp, #8]
	ldrsw	x8, [x8]
	cmp	x28, x8
	b.lt	LBB0_14
	b	LBB0_4
LBB0_15:
	mov	w24, #0
LBB0_16:
	ldr	w0, [sp, #44]
	bl	_krb5_free_context
	mov	x0, x24
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"krb5_init_context failed: %d"

	.comm	_tests,8,3                      ; @tests
	.comm	_KEYTYPE_DES3,4,2               ; @KEYTYPE_DES3
	.comm	_MAXSIZE,4,2                    ; @MAXSIZE
l_.str.1:                               ; @.str.1
	.asciz	"krb5_derive_key"

l_.str.3:                               ; @.str.3
	.asciz	"should be: "

l_.str.4:                               ; @.str.4
	.asciz	"%02x"

l_.str.5:                               ; @.str.5
	.asciz	"\nresult was: "

l_str:                                  ; @str
	.asciz	"derive_key failed"

.subsections_via_symbols
