	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_random_get_hex_bytes           ## -- Begin function random_get_hex_bytes
	.p2align	4, 0x90
_random_get_hex_bytes:                  ## @random_get_hex_bytes
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	_qtotal@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	cmpq	$0, (%rax)
	jle	LBB0_7
## %bb.1:
	testl	%r14d, %r14d
	jle	LBB0_7
## %bb.2:
	movq	_qleft@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	xorl	%r13d, %r13d
	movq	_buffer@GOTPCREL(%rip), %r8
	leaq	_random_get_hex_bytes.hcyf(%rip), %rsi
	movq	_qsize@GOTPCREL(%rip), %r9
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r8), %rbx
	movl	(%rbx,%rdx,4), %edi
	movl	$0, (%rbx,%rdx,4)
	movq	%rdi, %rdx
	shrq	$4, %rdx
	movzbl	(%rdx,%rsi), %edx
	movb	%dl, (%r12,%r13)
	andl	$15, %edi
	movzbl	(%rdi,%rsi), %edx
	movb	%dl, 1(%r12,%r13)
	movq	(%rcx), %rdx
	incq	%rdx
	cmpq	(%r9), %rdx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edx, %edx
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rdx, (%rcx)
	addq	$2, %r13
	movq	(%rax), %rdi
	leaq	-1(%rdi), %rbx
	movq	%rbx, (%rax)
	cmpq	$2, %rdi
	jl	LBB0_6
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r14d, %r13d
	jl	LBB0_3
LBB0_6:
	addq	%r13, %r12
LBB0_7:
	cmpl	%r14d, %r13d
	jge	LBB0_11
## %bb.8:
	xorl	%ebx, %ebx
	leaq	_random_get_hex_bytes.hcyf(%rip), %r15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	_B@GOTPCREL(%rip), %rdi
	callq	_bbs_next_random_byte
	movl	%eax, %eax
	movq	%rax, %rcx
	shrq	$4, %rcx
	movzbl	(%rcx,%r15), %ecx
	movb	%cl, (%r12,%rbx,2)
	andl	$15, %eax
	movzbl	(%rax,%r15), %eax
	movb	%al, 1(%r12,%rbx,2)
	addl	$2, %r13d
	cmpl	%r14d, %r13d
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	1(%rbx), %rax
	cmpl	$65535, %ebx                    ## imm = 0xFFFF
	movq	%rax, %rbx
	jb	LBB0_9
LBB0_11:
	cmpl	%r14d, %r13d
	cmovll	%r13d, %r14d
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @random_get_hex_bytes.hcyf
_random_get_hex_bytes.hcyf:
	.ascii	"0123456789abcdef"

	.comm	_qtotal,8,3                     ## @qtotal
	.comm	_buffer,8,3                     ## @buffer
	.comm	_qleft,8,3                      ## @qleft
	.comm	_qsize,8,3                      ## @qsize
	.comm	_B,4,2                          ## @B
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_random_get_hex_bytes           ; -- Begin function random_get_hex_bytes
	.p2align	2
_random_get_hex_bytes:                  ; @random_get_hex_bytes
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _qtotal@GOTPAGE
Lloh1:
	ldr	x8, [x8, _qtotal@GOTPAGEOFF]
	ldr	x9, [x8]
	cmp	x9, #1
	ccmp	w1, #1, #8, ge
Lloh2:
	adrp	x23, _random_get_hex_bytes.hcyf@PAGE
Lloh3:
	add	x23, x23, _random_get_hex_bytes.hcyf@PAGEOFF
	b.ge	LBB0_2
; %bb.1:
	mov	w22, #0
	cmp	w22, w19
	b.lt	LBB0_5
	b	LBB0_8
LBB0_2:
	mov	x22, #0
Lloh4:
	adrp	x9, _qleft@GOTPAGE
Lloh5:
	ldr	x9, [x9, _qleft@GOTPAGEOFF]
	ldr	x12, [x9]
Lloh6:
	adrp	x10, _buffer@GOTPAGE
Lloh7:
	ldr	x10, [x10, _buffer@GOTPAGEOFF]
Lloh8:
	adrp	x11, _qsize@GOTPAGE
Lloh9:
	ldr	x11, [x11, _qsize@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x10]
	lsl	x12, x12, #2
	ldr	w14, [x13, x12]
	str	wzr, [x13, x12]
	lsr	x12, x14, #4
	ldrb	w12, [x23, x12]
	add	x13, x20, x22
	strb	w12, [x13]
	and	x12, x14, #0xf
	ldrb	w12, [x23, x12]
	strb	w12, [x13, #1]
	ldr	x12, [x9]
	add	x13, x12, #1
	ldr	x14, [x11]
	cmp	x13, x14
	csinc	x12, xzr, x12, eq
	str	x12, [x9]
	add	x22, x22, #2
	ldr	x13, [x8]
	sub	x14, x13, #1
	str	x14, [x8]
	cmp	x13, #2
	ccmp	w22, w19, #0, ge
	b.lt	LBB0_3
; %bb.4:
	add	x20, x20, x22
	cmp	w22, w19
	b.ge	LBB0_8
LBB0_5:
	mov	w24, #0
Lloh10:
	adrp	x21, _B@GOTPAGE
Lloh11:
	ldr	x21, [x21, _B@GOTPAGEOFF]
	mov	w25, #65535
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_bbs_next_random_byte
	mov	w8, w0
	lsr	x9, x8, #4
	ldrb	w9, [x23, x9]
	strb	w9, [x20]
	and	x8, x8, #0xf
	ldrb	w8, [x23, x8]
	strb	w8, [x20, #1]
	add	w22, w22, #2
	cmp	w22, w19
	b.ge	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w8, w24, #1
	add	x20, x20, #2
	cmp	w24, w25
	mov	x24, x8
	b.lo	LBB0_6
LBB0_8:
	cmp	w22, w19
	csel	w0, w22, w19, lt
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_random_get_hex_bytes.hcyf:             ; @random_get_hex_bytes.hcyf
	.ascii	"0123456789abcdef"

	.comm	_qtotal,8,3                     ; @qtotal
	.comm	_buffer,8,3                     ; @buffer
	.comm	_qleft,8,3                      ; @qleft
	.comm	_qsize,8,3                      ; @qsize
	.comm	_B,4,2                          ; @B
.subsections_via_symbols
