	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rand_main                      ## -- Begin function rand_main
	.p2align	4, 0x90
_rand_main:                             ## @rand_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
	pushq	%rax
	movl	$4120, %eax                     ## imm = 0x1018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_FORMAT_BINARY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -4148(%rbp)               ## 4-byte Spill
	movl	$-1, -4152(%rbp)
	movq	_rand_options@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_opt_init
	movq	%rax, %r12
	xorl	%r15d, %r15d
	leaq	LJTI0_0(%rip), %r14
	xorl	%r13d, %r13d
	xorl	%eax, %eax
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movq	%rax, -4160(%rbp)               ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%eax, %eax
	callq	_opt_next
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	movslq	(%r14,%rax,4), %rax
	addq	%r14, %rax
	jmpq	*%rax
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=2
	movl	$128, %edi
	callq	_opt_rand
	testl	%eax, %eax
	jne	LBB0_2
	jmp	LBB0_34
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=2
	movq	_FORMAT_BASE64@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=2
	xorl	%eax, %eax
	callq	_opt_arg
	movq	%rax, %r13
	jmp	LBB0_2
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=2
	movq	_FORMAT_TEXT@GOTPCREL(%rip), %rax
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=2
	movl	(%rax), %eax
	movl	%eax, -4148(%rbp)               ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_opt_arg
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_setup_engine
	jmp	LBB0_1
LBB0_11:
	xorl	%eax, %eax
	callq	_opt_num_rest
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_opt_rest
	cmpl	$1, %ebx
	jne	LBB0_16
## %bb.12:
	movq	(%rax), %rdi
	leaq	-4152(%rbp), %rsi
	callq	_opt_int
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_34
## %bb.13:
	cmpl	$0, -4152(%rbp)
	jg	LBB0_14
	jmp	LBB0_34
LBB0_4:
	movl	(%rbx), %edi
	callq	_opt_help
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_35
LBB0_16:
	jl	LBB0_14
## %bb.17:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_BIO_printf
LBB0_18:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_BIO_printf
LBB0_34:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERR_print_errors
	movl	$1, %ebx
LBB0_35:
	movq	-4160(%rbp), %rdi               ## 8-byte Reload
	callq	_release_engine
	movq	%r15, %rdi
	callq	_BIO_free_all
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_37
## %bb.36:
	movl	%ebx, %eax
	addq	$4120, %rsp                     ## imm = 0x1018
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%r13, %rdi
	movl	$119, %esi
	movl	-4148(%rbp), %ebx               ## 4-byte Reload
	movl	%ebx, %edx
	callq	_bio_open_default
	testq	%rax, %rax
	je	LBB0_15
## %bb.19:
	movq	%rax, %r15
	movq	_FORMAT_BASE64@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_22
## %bb.20:
	xorl	%eax, %eax
	callq	_BIO_f_base64
	movl	%eax, %edi
	callq	_BIO_new
	testq	%rax, %rax
	je	LBB0_34
## %bb.21:
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_BIO_push
	movq	%rax, %r15
LBB0_22:
	movl	-4152(%rbp), %ebx
	testl	%ebx, %ebx
	jle	LBB0_31
## %bb.23:
	leaq	L_.str.2(%rip), %r13
LBB0_24:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_28 Depth 2
	cmpl	$4096, %ebx                     ## imm = 0x1000
	movl	$4096, %eax                     ## imm = 0x1000
	cmovgel	%eax, %ebx
	leaq	-4144(%rbp), %rdi
	movl	%ebx, %esi
	callq	_RAND_bytes
	testl	%eax, %eax
	jle	LBB0_34
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movl	-4148(%rbp), %eax               ## 4-byte Reload
	movq	_FORMAT_TEXT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_29
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	cmpl	$2, %ebx
	movl	$1, %r14d
	cmovgel	%ebx, %r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_28:                                ##   Parent Loop BB0_24 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	-4144(%rbp,%r12), %edx
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_BIO_printf
	cmpl	$2, %eax
	jne	LBB0_34
## %bb.27:                              ##   in Loop: Header=BB0_28 Depth=2
	incq	%r12
	cmpq	%r12, %r14
	jne	LBB0_28
	jmp	LBB0_30
LBB0_29:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	%r15, %rdi
	leaq	-4144(%rbp), %rsi
	movl	%ebx, %edx
	callq	_BIO_write
	cmpl	%ebx, %eax
	jne	LBB0_34
LBB0_30:                                ##   in Loop: Header=BB0_24 Depth=1
	movl	-4152(%rbp), %eax
	subl	%ebx, %eax
	movl	%eax, -4152(%rbp)
	movl	%eax, %ebx
	jg	LBB0_24
LBB0_31:
	movl	-4148(%rbp), %eax               ## 4-byte Reload
	movq	_FORMAT_TEXT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_33
## %bb.32:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_BIO_puts
LBB0_33:
	movq	%r15, %rdi
	callq	_BIO_flush
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jg	LBB0_35
	jmp	LBB0_34
LBB0_15:
	xorl	%r15d, %r15d
	jmp	LBB0_34
LBB0_37:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_4
	.long	L0_0_set_18
	.long	L0_0_set_11
	.long	L0_0_set_6
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_FORMAT_BINARY,4,2              ## @FORMAT_BINARY
	.comm	_rand_options,4,2               ## @rand_options
	.comm	_bio_err,4,2                    ## @bio_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Use -help for summary.\n"

	.comm	_FORMAT_BASE64,4,2              ## @FORMAT_BASE64
	.comm	_FORMAT_TEXT,4,2                ## @FORMAT_TEXT
L_.str.1:                               ## @.str.1
	.asciz	"Extra arguments given.\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rand_main                      ; -- Begin function rand_main
	.p2align	2
_rand_main:                             ; @rand_main
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	w9, #4128
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #32
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh5:
	adrp	x8, _FORMAT_BINARY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FORMAT_BINARY@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	mov	w8, #-1
	str	w8, [sp, #20]
Lloh8:
	adrp	x23, _rand_options@GOTPAGE
Lloh9:
	ldr	x23, [x23, _rand_options@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_opt_init
	mov	x21, x0
	mov	x22, #0
	mov	x19, #0
Lloh10:
	adrp	x24, _FORMAT_TEXT@GOTPAGE
Lloh11:
	ldr	x24, [x24, _FORMAT_TEXT@GOTPAGEOFF]
Lloh12:
	adrp	x25, _FORMAT_BASE64@GOTPAGE
Lloh13:
	ldr	x25, [x25, _FORMAT_BASE64@GOTPAGEOFF]
Lloh14:
	adrp	x26, lJTI0_0@PAGE
Lloh15:
	add	x26, x26, lJTI0_0@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	bl	_opt_next
	sub	w8, w0, #128
	cmp	w8, #7
	b.hi	LBB0_1
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	adr	x9, LBB0_3
	ldrb	w10, [x26, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #128
	bl	_opt_rand
	cbnz	w0, LBB0_1
	b	LBB0_14
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	bl	_opt_arg
	mov	w1, #0
	bl	_setup_engine
	mov	x19, x0
	b	LBB0_1
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x8, x25
	ldr	w20, [x25]
	b	LBB0_1
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	bl	_opt_arg
	mov	x22, x0
	b	LBB0_1
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x8, x24
	ldr	w20, [x24]
	b	LBB0_1
LBB0_8:
	ldr	w0, [x23]
	bl	_opt_help
	mov	w20, #0
	mov	x21, #0
	b	LBB0_16
LBB0_9:
	bl	_opt_num_rest
	mov	x23, x0
	bl	_opt_rest
	cmp	w23, #1
	b.ne	LBB0_11
; %bb.10:
	ldr	x0, [x0]
	add	x1, sp, #20
	bl	_opt_int
	ldr	w8, [sp, #20]
	cmp	w0, #0
	ccmp	w8, #1, #8, ne
	b.lt	LBB0_14
	b	LBB0_18
LBB0_11:
	b.lt	LBB0_18
; %bb.12:
Lloh16:
	adrp	x8, _bio_err@GOTPAGE
Lloh17:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh18:
	ldrsw	x0, [x8]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_BIO_printf
LBB0_13:
Lloh21:
	adrp	x8, _bio_err@GOTPAGE
Lloh22:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh23:
	ldrsw	x0, [x8]
	str	x21, [sp]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	bl	_BIO_printf
LBB0_14:
	mov	x21, #0
LBB0_15:
Lloh26:
	adrp	x8, _bio_err@GOTPAGE
Lloh27:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_ERR_print_errors
	mov	w20, #1
LBB0_16:
	mov	x0, x19
	bl	_release_engine
	mov	x0, x21
	bl	_BIO_free_all
	ldur	x8, [x29, #-88]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_35
; %bb.17:
	mov	x0, x20
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #32
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_18:
	mov	x0, x22
	mov	w1, #119
	mov	x2, x20
	bl	_bio_open_default
	mov	x21, x0
	cbz	x0, LBB0_15
; %bb.19:
	ldr	w8, [x25]
	cmp	w20, w8
	b.ne	LBB0_22
; %bb.20:
	bl	_BIO_f_base64
	bl	_BIO_new
	cbz	x0, LBB0_15
; %bb.21:
	mov	x1, x21
	bl	_BIO_push
	mov	x21, x0
LBB0_22:
	ldr	w8, [sp, #20]
	cmp	w8, #1
	b.lt	LBB0_31
; %bb.23:
	mov	w25, #4096
Lloh32:
	adrp	x22, l_.str.2@PAGE
Lloh33:
	add	x22, x22, l_.str.2@PAGEOFF
LBB0_24:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_27 Depth 2
	cmp	w8, #1, lsl #12                 ; =4096
	csel	w23, w8, w25, lt
	add	x0, sp, #24
	mov	x1, x23
	bl	_RAND_bytes
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	w8, [x24]
	cmp	w20, w8
	b.ne	LBB0_29
; %bb.26:                               ;   in Loop: Header=BB0_24 Depth=1
	cmp	w23, #1
	csinc	w26, w23, wzr, gt
	add	x27, sp, #24
LBB0_27:                                ;   Parent Loop BB0_24 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x27]
	str	x8, [sp]
	mov	x0, x21
	mov	x1, x22
	bl	_BIO_printf
	cmp	w0, #2
	b.ne	LBB0_15
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=2
	add	x27, x27, #1
	subs	x26, x26, #1
	b.ne	LBB0_27
	b	LBB0_30
LBB0_29:                                ;   in Loop: Header=BB0_24 Depth=1
	add	x1, sp, #24
	mov	x0, x21
	mov	x2, x23
	bl	_BIO_write
	cmp	w0, w23
	b.ne	LBB0_15
LBB0_30:                                ;   in Loop: Header=BB0_24 Depth=1
	ldr	w8, [sp, #20]
	sub	w8, w8, w23
	str	w8, [sp, #20]
	cmp	w8, #0
	b.gt	LBB0_24
LBB0_31:
	ldr	w8, [x24]
	cmp	w20, w8
	b.ne	LBB0_33
; %bb.32:
Lloh34:
	adrp	x1, l_.str.3@PAGE
Lloh35:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_BIO_puts
LBB0_33:
	mov	x0, x21
	bl	_BIO_flush
	cmp	x0, #0
	b.le	LBB0_15
; %bb.34:
	mov	w20, #0
	b	LBB0_16
LBB0_35:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
                                        ; -- End function
	.comm	_FORMAT_BINARY,4,2              ; @FORMAT_BINARY
	.comm	_rand_options,4,2               ; @rand_options
	.comm	_bio_err,4,2                    ; @bio_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Use -help for summary.\n"

	.comm	_FORMAT_BASE64,4,2              ; @FORMAT_BASE64
	.comm	_FORMAT_TEXT,4,2                ; @FORMAT_TEXT
l_.str.1:                               ; @.str.1
	.asciz	"Extra arguments given.\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"\n"

.subsections_via_symbols
