	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dl_log_dump_to_buf             ## -- Begin function dl_log_dump_to_buf
	.p2align	4, 0x90
_dl_log_dump_to_buf:                    ## @dl_log_dump_to_buf
	.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	%edi, %ebx
	testl	%edi, %edi
	setns	%al
	movq	_LOG_ID_MX@GOTPCREL(%rip), %rdi
	cmpl	%ebx, (%rdi)
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r14
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	setg	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	_dl_log@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	leaq	(%rcx,%rcx,2), %r15
	movl	(%rax,%r15,8), %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r12d, %r12d
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_DL_LOG_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movslq	%r12d, %r12
	movq	8(%rax,%r15,8), %rax
	movzbl	-1(%rax,%r12), %r13d
	xorl	%edi, %edi
	testb	%r13b, %r13b
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_dl_log@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%rax,%r15,8), %rcx
	movl	-4(%rcx,%r12,4), %ecx
	cmpl	-56(%rbp), %ecx                 ## 4-byte Folded Reload
	jg	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	-48(%rbp), %ecx                 ## 4-byte Folded Reload
	jl	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$10, %r13b
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	jle	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	decl	%eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movslq	%ebx, %rax
	incl	%ebx
	movb	%r13b, (%r14,%rax)
	movq	_dl_log@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	decq	%r12
	cmpl	%r12d, (%rax,%r15,8)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%rbx), %ecx
	cmpl	-52(%rbp), %ecx                 ## 4-byte Folded Reload
	jl	LBB0_1
LBB0_12:
	movq	%rbx, %rax
	movslq	%ebx, %rsi
	movb	$0, (%r14,%rsi)
	cmpl	$2, %esi
	jl	LBB0_15
## %bb.13:
	addq	$-2, %rsi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14,%rcx), %edx
	movzbl	1(%r14,%rsi), %ebx
	movb	%bl, (%r14,%rcx)
	movb	%dl, 1(%r14,%rsi)
	incq	%rcx
	leaq	-1(%rsi), %rdx
	cmpq	%rsi, %rcx
	movq	%rdx, %rsi
	jl	LBB0_14
LBB0_15:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG_ID_MX,4,2                  ## @LOG_ID_MX
	.comm	_dl_log,8,3                     ## @dl_log
	.comm	_DL_LOG_SIZE,4,2                ## @DL_LOG_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dl_log_dump_to_buf             ; -- Begin function dl_log_dump_to_buf
	.p2align	2
_dl_log_dump_to_buf:                    ; @dl_log_dump_to_buf
	.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	x20, x5
	mov	x21, x4
	mov	x19, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	cmp	w0, #0
Lloh0:
	adrp	x8, _LOG_ID_MX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOG_ID_MX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ccmp	w8, w0, #4, ge
	cset	w0, gt
	bl	_assert
	mov	w25, #0
Lloh3:
	adrp	x8, _dl_log@GOTPAGE
Lloh4:
	ldr	x8, [x8, _dl_log@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	sxtw	x27, w24
	mov	w28, #24
	smull	x9, w24, w28
	ldr	w24, [x8, x9]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	strb	w26, [x19, w25, sxtw]
	add	w9, w25, #1
Lloh6:
	adrp	x8, _dl_log@GOTPAGE
Lloh7:
	ldr	x8, [x8, _dl_log@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	mov	x25, x9
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mul	x9, x27, x28
	ldr	w9, [x8, x9]
	add	w10, w25, #1
	cmp	w9, w24
	ccmp	w10, w21, #0, ne
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
Lloh9:
	adrp	x9, _DL_LOG_SIZE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DL_LOG_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w24, #0
	csel	w9, w9, w24, eq
	sxtw	x9, w9
	sub	x24, x9, #1
	madd	x8, x27, x28, x8
	ldr	x8, [x8, #8]
	ldrb	w26, [x8, x24]
	cmp	w26, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh12:
	adrp	x8, _dl_log@GOTPAGE
Lloh13:
	ldr	x8, [x8, _dl_log@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	madd	x9, x27, x28, x8
	ldr	x9, [x9, #16]
	ldr	w9, [x9, x24, lsl #2]
	cmp	w9, w22
	ccmp	w9, w23, #8, le
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w26, #10
	b.ne	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	subs	w20, w20, #1
	b.ge	LBB0_1
LBB0_7:
	sxtw	x0, w25
	strb	wzr, [x19, x0]
	cmp	w25, #2
	b.lt	LBB0_10
; %bb.8:
	mov	x8, #0
	sub	x9, x0, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x19, x8]
	ldrb	w11, [x19, x9]
	strb	w11, [x19, x8]
	strb	w10, [x19, x9]
	add	x8, x8, #1
	sub	x9, x9, #1
	cmp	x8, x9
	b.lt	LBB0_9
LBB0_10:
                                        ; kill: def $w0 killed $w0 killed $x0
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG_ID_MX,4,2                  ; @LOG_ID_MX
	.comm	_dl_log,8,3                     ; @dl_log
	.comm	_DL_LOG_SIZE,4,2                ; @DL_LOG_SIZE
.subsections_via_symbols
