	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_passwd
_do_passwd:                             ## @do_passwd
	.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
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r13
	movl	%edi, %ebx
	movq	40(%rbp), %r12
	xorl	%edi, %edi
	testq	%rsi, %rsi
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	callq	_assert
	testl	%ebx, %ebx
	jne	LBB0_10
## %bb.1:
	movq	_passwd_crypt@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	%r12, (%rax)
	sete	%bl
	addq	%rbx, %rbx
	movq	_passwd_md5@GOTPCREL(%rip), %rax
	movq	_passwd_aixmd5@GOTPCREL(%rip), %rcx
	cmpq	%r12, (%rcx)
	movq	_passwd_apr1@GOTPCREL(%rip), %rcx
	movl	$8, %edx
	cmoveq	%rdx, %rbx
	cmpq	%r12, (%rcx)
	cmoveq	%rdx, %rbx
	cmpq	%r12, (%rax)
	cmoveq	%rdx, %rbx
	movq	_passwd_sha512@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	movq	_passwd_sha256@GOTPCREL(%rip), %rax
	movl	$16, %ecx
	cmoveq	%rcx, %rbx
	cmpq	%r12, (%rax)
	cmoveq	%rcx, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	cmpq	$0, (%r14)
	je	LBB0_3
## %bb.2:
	movq	(%r13), %rdi
	jmp	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	orq	$1, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_app_malloc
	movq	%rax, %rdi
	movq	%rax, (%r14)
	movq	%rax, (%r13)
LBB0_4:
	movq	%rbx, %rsi
	callq	_RAND_bytes
	testq	%rax, %rax
	jle	LBB0_5
## %bb.6:
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.7:
	xorl	%eax, %eax
	movq	_cov_2char@GOTPCREL(%rip), %rcx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rdx
	movq	(%r13), %rsi
	movzbl	(%rsi,%rax), %edi
	andl	$63, %edi
	movzbl	(%rdx,%rdi), %edx
	movb	%dl, (%rsi,%rax)
	movq	(%rcx), %rdx
	movq	(%r13), %rsi
	movzbl	1(%rsi,%rax), %edi
	andl	$63, %edi
	movzbl	(%rdx,%rdi), %edx
	movb	%dl, 1(%rsi,%rax)
	addq	$2, %rax
	cmpq	%rax, %rbx
	jne	LBB0_8
LBB0_9:
	movq	(%r13), %rax
	movb	$0, (%rax,%rbx)
LBB0_10:
	movq	32(%rbp), %rbx
	xorl	%edi, %edi
	cmpq	$0, (%r13)
	setne	%dil
	callq	_assert
	movq	%r15, %rdi
	callq	_strlen
	cmpq	%rbx, %rax
	jbe	LBB0_14
## %bb.11:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_13
## %bb.12:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_BIO_printf
LBB0_13:
	movb	$0, (%r15,%rbx)
LBB0_14:
	movq	%r15, %rdi
	callq	_strlen
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	setbe	%dil
	callq	_assert
	movq	_passwd_crypt@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_15
## %bb.16:
	movq	(%r13), %rsi
	movq	%r15, %rdi
	callq	_DES_crypt
	movq	%rax, %rbx
	jmp	LBB0_17
LBB0_15:
	xorl	%ebx, %ebx
LBB0_17:
	movq	_passwd_md5@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%r12, %rax
	je	LBB0_19
## %bb.18:
	movq	_passwd_apr1@GOTPCREL(%rip), %rcx
	cmpq	%r12, (%rcx)
	jne	LBB0_20
LBB0_19:
	cmpq	%r12, %rax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	(%r13), %rdx
	movq	%r15, %rdi
	callq	_md5crypt
	movq	%rax, %rbx
LBB0_20:
	movq	_passwd_aixmd5@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_22
## %bb.21:
	movq	(%r13), %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_md5crypt
	movq	%rax, %rbx
LBB0_22:
	movl	16(%rbp), %r14d
	movq	_passwd_sha256@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%r12, %rax
	je	LBB0_24
## %bb.23:
	movq	_passwd_sha512@GOTPCREL(%rip), %rcx
	cmpq	%r12, (%rcx)
	jne	LBB0_25
LBB0_24:
	cmpq	%r12, %rax
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.6(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	(%r13), %rdx
	movq	%r15, %rdi
	callq	_shacrypt
	movq	%rax, %rbx
LBB0_25:
	movl	24(%rbp), %r12d
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	testl	%r14d, %r14d
	je	LBB0_29
## %bb.26:
	testl	%r12d, %r12d
	jne	LBB0_29
## %bb.27:
	leaq	L_.str.7(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%rbx, %rcx
	jmp	LBB0_28
LBB0_29:
	testl	%r14d, %r14d
	je	LBB0_32
## %bb.30:
	testl	%r12d, %r12d
	je	LBB0_32
## %bb.31:
	leaq	L_.str.7(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%r15, %rcx
LBB0_28:
	xorl	%eax, %eax
	callq	_BIO_printf
	jmp	LBB0_33
LBB0_32:
	leaq	L_.str.8(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_BIO_printf
LBB0_33:
	movl	$1, %eax
LBB0_34:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
	.comm	_passwd_crypt,8,3               ## @passwd_crypt
	.comm	_passwd_md5,8,3                 ## @passwd_md5
	.comm	_passwd_apr1,8,3                ## @passwd_apr1
	.comm	_passwd_aixmd5,8,3              ## @passwd_aixmd5
	.comm	_passwd_sha256,8,3              ## @passwd_sha256
	.comm	_passwd_sha512,8,3              ## @passwd_sha512
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"salt buffer"

	.comm	_cov_2char,8,3                  ## @cov_2char
	.comm	_bio_err,4,2                    ## @bio_err
L_.str.1:                               ## @.str.1
	.asciz	"Warning: truncating password to %u characters\n"

L_.str.2:                               ## @.str.2
	.asciz	"1"

L_.str.3:                               ## @.str.3
	.asciz	"apr1"

L_.str.4:                               ## @.str.4
	.space	1

L_.str.5:                               ## @.str.5
	.asciz	"5"

L_.str.6:                               ## @.str.6
	.asciz	"6"

L_.str.7:                               ## @.str.7
	.asciz	"%s\t%s\n"

L_.str.8:                               ## @.str.8
	.asciz	"%s\n"

	.no_dead_strip	_do_passwd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_passwd
_do_passwd:                             ; @do_passwd
	.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	x21, x7
	mov	x22, x6
	mov	x24, x5
	mov	x19, x4
	mov	x20, x3
	mov	x25, x2
	mov	x23, x1
	mov	x26, x0
	ldr	x27, [x29, #24]
	cmp	x1, #0
	cset	w0, ne
	bl	_assert
	cmp	x25, #0
	cset	w0, ne
	bl	_assert
Lloh0:
	adrp	x28, _passwd_crypt@GOTPAGE
Lloh1:
	ldr	x28, [x28, _passwd_crypt@GOTPAGEOFF]
	cbnz	w26, LBB0_9
; %bb.1:
	ldr	x8, [x28]
	cmp	x8, x27
	cset	w8, eq
	lsl	x8, x8, #1
Lloh2:
	adrp	x9, _passwd_md5@GOTPAGE
Lloh3:
	ldr	x9, [x9, _passwd_md5@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _passwd_apr1@GOTPAGE
Lloh6:
	ldr	x10, [x10, _passwd_apr1@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
Lloh8:
	adrp	x11, _passwd_aixmd5@GOTPAGE
Lloh9:
	ldr	x11, [x11, _passwd_aixmd5@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
	cmp	x11, x27
	ccmp	x10, x27, #4, ne
	ccmp	x9, x27, #4, ne
	mov	w9, #8
	csel	x8, x9, x8, eq
Lloh11:
	adrp	x9, _passwd_sha256@GOTPAGE
Lloh12:
	ldr	x9, [x9, _passwd_sha256@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _passwd_sha512@GOTPAGE
Lloh15:
	ldr	x10, [x10, _passwd_sha512@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x10, x27
	ccmp	x9, x27, #4, ne
	mov	w9, #16
	csel	x26, x9, x8, eq
	cmp	x26, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x25]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x0, [x23]
	b	LBB0_4
LBB0_3:
	orr	x0, x26, #0x1
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_app_malloc
	str	x0, [x25]
	str	x0, [x23]
LBB0_4:
	mov	x1, x26
	bl	_RAND_bytes
	cmp	x0, #1
	b.lt	LBB0_33
; %bb.5:
	cbz	x26, LBB0_8
; %bb.6:
	mov	x8, #0
Lloh19:
	adrp	x9, _cov_2char@GOTPAGE
Lloh20:
	ldr	x9, [x9, _cov_2char@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	ldr	x11, [x23]
	ldrb	w12, [x11, x8]
	and	x12, x12, #0x3f
	ldrb	w10, [x10, x12]
	strb	w10, [x11, x8]
	add	x8, x8, #1
	cmp	x26, x8
	b.ne	LBB0_7
LBB0_8:
	ldr	x8, [x23]
	strb	wzr, [x8, x26]
LBB0_9:
	ldr	x25, [x29, #16]
	ldr	x8, [x23]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x20
	bl	_strlen
	cmp	x0, x25
	b.ls	LBB0_13
; %bb.10:
	cbnz	w24, LBB0_12
; %bb.11:
Lloh21:
	adrp	x8, _bio_err@GOTPAGE
Lloh22:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh23:
	ldrsw	x0, [x8]
	str	x25, [sp]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_BIO_printf
LBB0_12:
	strb	wzr, [x20, x25]
LBB0_13:
	mov	x0, x20
	bl	_strlen
	cmp	x0, x25
	cset	w0, ls
	bl	_assert
	ldr	x8, [x28]
	cmp	x8, x27
	b.ne	LBB0_15
; %bb.14:
	ldr	x1, [x23]
	mov	x0, x20
	bl	_DES_crypt
	mov	x24, x0
	b	LBB0_16
LBB0_15:
	mov	x24, #0
LBB0_16:
Lloh26:
	adrp	x8, _passwd_md5@GOTPAGE
Lloh27:
	ldr	x8, [x8, _passwd_md5@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
Lloh29:
	adrp	x9, _passwd_apr1@GOTPAGE
Lloh30:
	ldr	x9, [x9, _passwd_apr1@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x27
	ccmp	x9, x27, #4, ne
	b.ne	LBB0_18
; %bb.17:
Lloh32:
	adrp	x9, l_.str.3@PAGE
Lloh33:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh34:
	adrp	x10, l_.str.2@PAGE
Lloh35:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x8, x27
	csel	x1, x10, x9, eq
	ldr	x2, [x23]
	mov	x0, x20
	bl	_md5crypt
	mov	x24, x0
LBB0_18:
Lloh36:
	adrp	x8, _passwd_aixmd5@GOTPAGE
Lloh37:
	ldr	x8, [x8, _passwd_aixmd5@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	cmp	x8, x27
	b.ne	LBB0_20
; %bb.19:
	ldr	x2, [x23]
Lloh39:
	adrp	x1, l_.str.4@PAGE
Lloh40:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_md5crypt
	mov	x24, x0
LBB0_20:
Lloh41:
	adrp	x8, _passwd_sha256@GOTPAGE
Lloh42:
	ldr	x8, [x8, _passwd_sha256@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	cmp	x8, x27
	b.eq	LBB0_22
; %bb.21:
Lloh44:
	adrp	x9, _passwd_sha512@GOTPAGE
Lloh45:
	ldr	x9, [x9, _passwd_sha512@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x9, x27
	b.ne	LBB0_23
LBB0_22:
Lloh47:
	adrp	x9, l_.str.6@PAGE
Lloh48:
	add	x9, x9, l_.str.6@PAGEOFF
Lloh49:
	adrp	x10, l_.str.5@PAGE
Lloh50:
	add	x10, x10, l_.str.5@PAGEOFF
	cmp	x8, x27
	csel	x1, x10, x9, eq
	ldr	x2, [x23]
	mov	x0, x20
	bl	_shacrypt
	mov	x24, x0
LBB0_23:
	cmp	x24, #0
	cset	w0, ne
	bl	_assert
	cbz	w22, LBB0_26
; %bb.24:
	cbnz	w21, LBB0_26
; %bb.25:
	stp	x20, x24, [sp]
	b	LBB0_29
LBB0_26:
	cbz	w22, LBB0_30
; %bb.27:
	cbz	w21, LBB0_30
; %bb.28:
	stp	x24, x20, [sp]
LBB0_29:
Lloh51:
	adrp	x1, l_.str.7@PAGE
Lloh52:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_31
LBB0_30:
	str	x24, [sp]
Lloh53:
	adrp	x1, l_.str.8@PAGE
Lloh54:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_31:
	mov	x0, x19
	bl	_BIO_printf
	mov	w0, #1
LBB0_32:
	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
LBB0_33:
	mov	w0, #0
	b	LBB0_32
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_passwd_crypt,8,3               ; @passwd_crypt
	.comm	_passwd_md5,8,3                 ; @passwd_md5
	.comm	_passwd_apr1,8,3                ; @passwd_apr1
	.comm	_passwd_aixmd5,8,3              ; @passwd_aixmd5
	.comm	_passwd_sha256,8,3              ; @passwd_sha256
	.comm	_passwd_sha512,8,3              ; @passwd_sha512
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"salt buffer"

	.comm	_cov_2char,8,3                  ; @cov_2char
	.comm	_bio_err,4,2                    ; @bio_err
l_.str.1:                               ; @.str.1
	.asciz	"Warning: truncating password to %u characters\n"

l_.str.2:                               ; @.str.2
	.asciz	"1"

l_.str.3:                               ; @.str.3
	.asciz	"apr1"

l_.str.4:                               ; @.str.4
	.space	1

l_.str.5:                               ; @.str.5
	.asciz	"5"

l_.str.6:                               ; @.str.6
	.asciz	"6"

l_.str.7:                               ; @.str.7
	.asciz	"%s\t%s\n"

l_.str.8:                               ; @.str.8
	.asciz	"%s\n"

	.no_dead_strip	_do_passwd
.subsections_via_symbols
