	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__crypt_gensalt_blowfish_rn     ## -- Begin function _crypt_gensalt_blowfish_rn
	.p2align	4, 0x90
__crypt_gensalt_blowfish_rn:            ## @_crypt_gensalt_blowfish_rn
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%r8, %rbx
	cmpl	$16, %ecx
	jl	LBB0_9
## %bb.1:
	cmpl	$30, %r9d
	jl	LBB0_9
## %bb.2:
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	leaq	-4(%rsi), %rax
	cmpq	$27, %rax
	ja	LBB0_10
LBB0_4:
	cmpb	$36, (%rdi)
	jne	LBB0_10
## %bb.5:
	cmpb	$50, 1(%rdi)
	jne	LBB0_10
## %bb.6:
	movb	2(%rdi), %al
	cmpb	$97, %al
	je	LBB0_8
## %bb.7:
	cmpb	$121, %al
	jne	LBB0_10
LBB0_8:
	testq	%rsi, %rsi
	movw	$12836, (%rbx)                  ## imm = 0x3224
	movb	2(%rdi), %al
	movb	%al, 2(%rbx)
	movb	$36, 3(%rbx)
	movl	$5, %eax
	cmovnel	%esi, %eax
	movzbl	%al, %eax
	imull	$205, %eax, %ecx
	shrl	$11, %ecx
	leal	48(%rcx), %esi
	movb	%sil, 4(%rbx)
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	subb	%cl, %al
	orb	$48, %al
	movb	%al, 5(%rbx)
	movb	$36, 6(%rbx)
	leaq	7(%rbx), %rdi
	movq	%rdx, %rsi
	movl	$16, %edx
	callq	_BF_encode
	movb	$0, 29(%rbx)
	jmp	LBB0_15
LBB0_9:
	testl	%r9d, %r9d
	jle	LBB0_11
LBB0_10:
	movb	$0, (%rbx)
LBB0_11:
	cmpl	$30, %r9d
	jge	LBB0_12
## %bb.13:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %edi
	callq	___set_errno
	xorl	%ebx, %ebx
LBB0_15:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__crypt_gensalt_blowfish_rn     ; -- Begin function _crypt_gensalt_blowfish_rn
	.p2align	2
__crypt_gensalt_blowfish_rn:            ; @_crypt_gensalt_blowfish_rn
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x4
	cmp	w3, #16
	b.lt	LBB0_9
; %bb.1:
	cmp	w5, #30
	b.lt	LBB0_9
; %bb.2:
	cbz	x1, LBB0_4
; %bb.3:
	sub	x8, x1, #4
	cmp	x8, #27
	b.hi	LBB0_10
LBB0_4:
	ldrb	w8, [x0]
	cmp	w8, #36
	b.ne	LBB0_10
; %bb.5:
	ldrb	w8, [x0, #1]
	cmp	w8, #50
	b.ne	LBB0_10
; %bb.6:
	ldrb	w8, [x0, #2]
	cmp	w8, #97
	b.eq	LBB0_8
; %bb.7:
	cmp	w8, #121
	b.ne	LBB0_10
LBB0_8:
	mov	w8, #12836
	strh	w8, [x19]
	ldrb	w8, [x0, #2]
	strb	w8, [x19, #2]
	mov	w8, #36
	strb	w8, [x19, #3]
	cmp	x1, #0
	mov	w9, #5
	csel	w9, w9, w1, eq
	and	w10, w9, #0xff
	mov	w11, #205
	mul	w10, w10, w11
	lsr	w10, w10, #11
	add	w11, w10, #48
	strb	w11, [x19, #4]
	mov	w11, #10
	msub	w9, w10, w11, w9
	orr	w9, w9, #0x30
	strb	w9, [x19, #5]
	strb	w8, [x19, #6]
	add	x0, x19, #7
	mov	x1, x2
	mov	w2, #16
	bl	_BF_encode
	strb	wzr, [x19, #29]
	b	LBB0_12
LBB0_9:
	cmp	w5, #1
	b.lt	LBB0_11
LBB0_10:
	strb	wzr, [x19]
LBB0_11:
Lloh0:
	adrp	x8, _ERANGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _EINVAL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
	cmp	w5, #30
	csel	x8, x8, x9, lt
	ldr	w0, [x8]
	bl	___set_errno
	mov	x19, #0
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
