	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_px_gen_salt                    ## -- Begin function px_gen_salt
	.p2align	4, 0x90
_px_gen_salt:                           ## @px_gen_salt
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_gen_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movl	%edx, %r12d
	movq	%rsi, %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rsi
	callq	_pg_strcasecmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	72(%rbx), %rdi
	addq	$40, %rbx
	testq	%rdi, %rdi
	jne	LBB0_2
	jmp	LBB0_8
LBB0_4:
	cmpq	$0, 32(%rbx)
	je	LBB0_8
## %bb.5:
	movl	(%rbx), %r15d
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.6:
	testl	%r12d, %r12d
	cmovnel	%r12d, %r15d
	cmpl	4(%rbx), %r15d
	jl	LBB0_16
## %bb.7:
	cmpl	8(%rbx), %r15d
	jle	LBB0_13
	jmp	LBB0_16
LBB0_8:
	movq	_PXE_UNKNOWN_SALT_ALGO@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_18
## %bb.11:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	%r12d, %r15d
LBB0_13:
	movl	24(%rbx), %esi
	leaq	-64(%rbp), %rdi
	callq	_pg_strong_random
	testl	%eax, %eax
	je	LBB0_17
## %bb.14:
	movl	24(%rbx), %edx
	movq	_PX_MAX_SALT_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-64(%rbp), %r12
	movl	%r15d, %edi
	movq	%r12, %rsi
	movq	%r14, %rcx
	callq	*16(%rbx)
	movq	%rax, %rbx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_px_memset
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	callq	_strlen
	jmp	LBB0_10
LBB0_16:
	movq	_PXE_BAD_SALT_ROUNDS@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_17:
	movq	_PXE_NO_RANDOM@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_gen_list,8,3                   ## @gen_list
	.comm	_PXE_UNKNOWN_SALT_ALGO,4,2      ## @PXE_UNKNOWN_SALT_ALGO
	.comm	_PXE_BAD_SALT_ROUNDS,4,2        ## @PXE_BAD_SALT_ROUNDS
	.comm	_PXE_NO_RANDOM,4,2              ## @PXE_NO_RANDOM
	.comm	_PX_MAX_SALT_LEN,4,2            ## @PX_MAX_SALT_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_px_gen_salt                    ; -- Begin function px_gen_salt
	.p2align	2
_px_gen_salt:                           ; @px_gen_salt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _gen_list@GOTPAGE
Lloh4:
	ldr	x8, [x8, _gen_list@GOTPAGEOFF]
Lloh5:
	ldr	x22, [x8]
	ldr	x0, [x22, #32]
	cbz	x0, LBB0_11
; %bb.1:
	mov	x20, x2
	mov	x19, x1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x21
	bl	_pg_strcasecmp
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x22, #72]
	add	x22, x22, #40
	cbnz	x0, LBB0_2
	b	LBB0_11
LBB0_4:
	ldr	x8, [x22, #32]
	cbz	x8, LBB0_11
; %bb.5:
	ldr	w8, [x22]
	cbz	w8, LBB0_8
; %bb.6:
	cmp	w20, #0
	csel	w20, w8, w20, eq
	ldr	w8, [x22, #4]
	cmp	w20, w8
	b.lt	LBB0_15
; %bb.7:
	ldr	w8, [x22, #8]
	cmp	w20, w8
	b.gt	LBB0_15
LBB0_8:
	ldr	w1, [x22, #24]
	add	x0, sp, #8
	bl	_pg_strong_random
	cbz	w0, LBB0_16
; %bb.9:
	ldr	x8, [x22, #16]
	ldr	w2, [x22, #24]
Lloh6:
	adrp	x9, _PX_MAX_SALT_LEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PX_MAX_SALT_LEN@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x9]
	add	x1, sp, #8
	mov	x0, x20
	mov	x3, x19
	blr	x8
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #16
	bl	_px_memset
	cbz	x19, LBB0_15
; %bb.10:
	mov	x0, x19
	bl	_strlen
	b	LBB0_13
LBB0_11:
Lloh9:
	adrp	x8, _PXE_UNKNOWN_SALT_ALGO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PXE_UNKNOWN_SALT_ALGO@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
LBB0_13:
	ldr	x8, [sp, #24]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_15:
Lloh14:
	adrp	x8, _PXE_BAD_SALT_ROUNDS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PXE_BAD_SALT_ROUNDS@GOTPAGEOFF]
	b	LBB0_12
LBB0_16:
Lloh16:
	adrp	x8, _PXE_NO_RANDOM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PXE_NO_RANDOM@GOTPAGEOFF]
	b	LBB0_12
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_gen_list,8,3                   ; @gen_list
	.comm	_PXE_UNKNOWN_SALT_ALGO,4,2      ; @PXE_UNKNOWN_SALT_ALGO
	.comm	_PXE_BAD_SALT_ROUNDS,4,2        ; @PXE_BAD_SALT_ROUNDS
	.comm	_PXE_NO_RANDOM,4,2              ; @PXE_NO_RANDOM
	.comm	_PX_MAX_SALT_LEN,4,2            ; @PX_MAX_SALT_LEN
.subsections_via_symbols
