	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aes_kdf
_aes_kdf:                               ## @aes_kdf
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movl	%r8d, %r13d
	movq	%rcx, %r12
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	$-1, %eax
	cmpq	$256, %rsi                      ## imm = 0x100
	je	LBB0_2
## %bb.1:
	cmpq	$128, %rsi
	jne	LBB0_15
LBB0_2:
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %r15
	movq	%rdx, %rdi
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	callq	_os_strlen
	leal	7(%r13), %ecx
	addl	$14, %r13d
	testl	%ecx, %ecx
	cmovnsl	%ecx, %r13d
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movzwl	%r14w, %edx
	addl	$7, %edx
	shrl	$3, %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_os_memset
	leal	127(%r14), %eax
	leal	254(%r14), %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	cmpl	$32640, %r14d                   ## imm = 0x7F80
	jle	LBB0_4
## %bb.3:
	movl	$-1, %eax
	jmp	LBB0_15
LBB0_4:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	sarl	$3, %r13d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r13), %edi
	addl	$4, %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_os_zalloc
	movq	%rax, %r12
	testq	%rax, %rax
	movl	$-1, %eax
	je	LBB0_15
## %bb.5:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leal	(%rdx,%r13), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	leaq	1(%r12), %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_os_memcpy
	movslq	-56(%rbp), %rax                 ## 4-byte Folded Reload
	leaq	(%r12,%rax), %rdi
	addq	$2, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_os_memcpy
	movslq	-60(%rbp), %rax                 ## 4-byte Folded Reload
	leaq	(%rax,%r12), %rdi
	addq	$2, %rdi
	movl	%r14d, %esi
	callq	_WPA_PUT_BE16
	testl	%r14d, %r14d
	jle	LBB0_12
## %bb.6:
	sarl	$7, %ebx
	cmpl	$2, %ebx
	movl	$1, %r14d
	cmovgel	%ebx, %r14d
	xorl	%ebx, %ebx
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r15, %rcx
	callq	_omac1_aes_256
	testl	%eax, %eax
	jne	LBB0_13
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	addq	$16, %r15
	cmpl	%ebx, %r14d
	je	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movb	%bl, (%r12)
	cmpq	$128, %r13
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r15, %rcx
	callq	_omac1_aes_128
	testl	%eax, %eax
	je	LBB0_10
LBB0_13:
	movl	$-1, %ebx
	jmp	LBB0_14
LBB0_12:
	xorl	%ebx, %ebx
LBB0_14:
	movq	%r12, %rdi
	callq	_os_free
	movl	%ebx, %eax
LBB0_15:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_aes_kdf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aes_kdf
_aes_kdf:                               ; @aes_kdf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x6
	mov	x24, x5
	mov	x23, x4
	mov	x25, x3
	mov	x26, x2
	mov	x20, x1
	mov	x21, x0
	cmp	x1, #256
	b.eq	LBB0_2
; %bb.1:
	cmp	x20, #128
	b.ne	LBB0_11
LBB0_2:
	mov	x0, x26
	bl	_os_strlen
	mov	x22, x0
	add	w8, w23, #7
	add	w9, w23, #14
	cmp	w8, #0
	csel	w23, w9, w8, lt
	and	w8, w24, #0xffff
	add	w8, w8, #7
	lsr	w2, w8, #3
	mov	x0, x19
	mov	w1, #0
	bl	_os_memset
	add	w8, w24, #127
	add	w9, w24, #254
	cmp	w8, #0
	csel	w9, w9, w8, lt
	mov	w8, #32640
	cmp	w24, w8
	b.gt	LBB0_11
; %bb.3:
	str	w9, [sp, #4]                    ; 4-byte Folded Spill
	str	x25, [sp, #8]                   ; 8-byte Folded Spill
	asr	w27, w23, #3
	sxtw	x28, w22
	add	x25, x28, w27, sxtw
	add	w23, w25, #4
	mov	x0, x23
	bl	_os_zalloc
	cbz	x0, LBB0_11
; %bb.4:
	mov	x22, x0
	add	x0, x0, #1
	mov	x1, x26
	mov	x2, x28
	bl	_os_memcpy
	add	x8, x22, x28
	add	x0, x8, #2
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x27
	bl	_os_memcpy
	add	x8, x25, x22
	add	x0, x8, #2
	mov	x1, x24
	bl	_WPA_PUT_BE16
	cmp	w24, #1
	b.lt	LBB0_12
; %bb.5:
	mov	w24, #0
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	asr	w8, w8, #7
	cmp	w8, #1
	csinc	w25, w8, wzr, gt
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	bl	_omac1_aes_256
	cbnz	w0, LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x19, x19, #16
	cmp	w25, w24
	b.eq	LBB0_12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	w24, w24, #1
	strb	w24, [x22]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x3, x19
	cmp	x20, #128
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	bl	_omac1_aes_128
	cbz	w0, LBB0_7
LBB0_10:
	mov	w19, #-1
	b	LBB0_13
LBB0_11:
	mov	w19, #-1
	b	LBB0_14
LBB0_12:
	mov	w19, #0
LBB0_13:
	mov	x0, x22
	bl	_os_free
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_aes_kdf
.subsections_via_symbols
