	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_irep_record
_write_irep_record:                     ## @write_irep_record
	.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
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movl	%r8d, %r12d
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r13
	callq	_get_irep_record_size_1
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_write_irep_header
	cltq
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%rax,4), %r14
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	callq	_write_iseq_block
	cltq
	leaq	(%r14,%rax,4), %r14
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_write_pool_block
	cltq
	leaq	(%r14,%rax,4), %r14
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_write_syms_block
	cltq
	leaq	(%r14,%rax,4), %r14
	cmpl	$0, (%rbx)
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_5
## %bb.6:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movq	(%rax,%r15,8), %rsi
	movq	%r13, %rdi
	movq	%r14, %rdx
	leaq	-64(%rbp), %rcx
	movl	%r12d, %r8d
	callq	_write_irep_record
	movq	_MRB_DUMP_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-64(%rbp), %rcx
	leaq	(%r14,%rcx,4), %r14
	incq	%r15
	movslq	(%rbx), %rcx
	cmpq	%rcx, %r15
	jl	LBB0_7
	jmp	LBB0_9
LBB0_1:
	movq	_MRB_DUMP_INVALID_IREP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_3:
	movq	_MRB_DUMP_GENERAL_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_5:
	movq	_MRB_DUMP_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	subq	-48(%rbp), %r14                 ## 8-byte Folded Reload
	sarq	$2, %r14
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, (%rcx)
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MRB_DUMP_INVALID_IREP,4,2      ## @MRB_DUMP_INVALID_IREP
	.comm	_MRB_DUMP_GENERAL_FAILURE,4,2   ## @MRB_DUMP_GENERAL_FAILURE
	.comm	_MRB_DUMP_OK,4,2                ## @MRB_DUMP_OK
	.no_dead_strip	_write_irep_record
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_irep_record
_write_irep_record:                     ; @write_irep_record
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	cbz	x1, LBB0_6
; %bb.1:
	mov	x21, x4
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	bl	_get_irep_record_size_1
	str	x0, [x19]
	cbz	x0, LBB0_7
; %bb.2:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x20
	bl	_write_irep_header
	add	x24, x20, w0, sxtw #2
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	mov	x3, x21
	bl	_write_iseq_block
	add	x24, x24, w0, sxtw #2
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	bl	_write_pool_block
	add	x24, x24, w0, sxtw #2
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	bl	_write_syms_block
	add	x24, x24, w0, sxtw #2
	ldr	w8, [x22]
	cmp	w8, #0
	b.le	LBB0_8
; %bb.3:
	mov	x25, #0
Lloh0:
	adrp	x26, _MRB_DUMP_OK@GOTPAGE
Lloh1:
	ldr	x26, [x26, _MRB_DUMP_OK@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	x1, [x8, x25, lsl #3]
	add	x3, sp, #8
	mov	x0, x23
	mov	x2, x24
	mov	x4, x21
	bl	_write_irep_record
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #8]
	add	x24, x24, x8, lsl #2
	add	x25, x25, #1
	ldrsw	x8, [x22]
	cmp	x25, x8
	b.lt	LBB0_4
	b	LBB0_9
LBB0_6:
Lloh2:
	adrp	x8, _MRB_DUMP_INVALID_IREP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MRB_DUMP_INVALID_IREP@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_7:
Lloh5:
	adrp	x8, _MRB_DUMP_GENERAL_FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MRB_DUMP_GENERAL_FAILURE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_8:
Lloh8:
	adrp	x8, _MRB_DUMP_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MRB_DUMP_OK@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_9:
	sub	x8, x24, x20
	asr	x8, x8, #2
	str	x8, [x19]
LBB0_10:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MRB_DUMP_INVALID_IREP,4,2      ; @MRB_DUMP_INVALID_IREP
	.comm	_MRB_DUMP_GENERAL_FAILURE,4,2   ; @MRB_DUMP_GENERAL_FAILURE
	.comm	_MRB_DUMP_OK,4,2                ; @MRB_DUMP_OK
	.no_dead_strip	_write_irep_record
.subsections_via_symbols
