	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mrb_dump_irep_binary           ## -- Begin function mrb_dump_irep_binary
	.p2align	4, 0x90
_mrb_dump_irep_binary:                  ## @mrb_dump_irep_binary
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movq	%rcx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_FLAG_BYTEORDER_NONATIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%edx, %edi
	callq	_dump_flags
	leaq	-40(%rbp), %rcx
	leaq	-32(%rbp), %r8
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_dump_irep
	movl	%eax, %ebx
	movq	_MRB_DUMP_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_5
## %bb.3:
	movq	-40(%rbp), %rdi
	movq	-32(%rbp), %rdx
	movl	$4, %esi
	movq	%r15, %rcx
	callq	_fwrite
	cmpq	-32(%rbp), %rax
	je	LBB0_5
## %bb.4:
	movq	_MRB_DUMP_WRITE_FAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_5:
	movq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_mrb_free
	jmp	LBB0_6
LBB0_1:
	movq	_MRB_DUMP_INVALID_ARGUMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MRB_DUMP_INVALID_ARGUMENT,4,2  ## @MRB_DUMP_INVALID_ARGUMENT
	.comm	_FLAG_BYTEORDER_NONATIVE,4,2    ## @FLAG_BYTEORDER_NONATIVE
	.comm	_MRB_DUMP_OK,4,2                ## @MRB_DUMP_OK
	.comm	_MRB_DUMP_WRITE_FAULT,4,2       ## @MRB_DUMP_WRITE_FAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mrb_dump_irep_binary           ; -- Begin function mrb_dump_irep_binary
	.p2align	2
_mrb_dump_irep_binary:                  ; @mrb_dump_irep_binary
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	stp	xzr, xzr, [sp]
	cbz	x3, LBB0_4
; %bb.1:
	mov	x20, x3
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _FLAG_BYTEORDER_NONATIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLAG_BYTEORDER_NONATIVE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x2
	bl	_dump_flags
	mov	x2, x0
	add	x3, sp, #8
	mov	x4, sp
	mov	x0, x19
	mov	x1, x21
	bl	_dump_irep
	mov	x21, x0
Lloh3:
	adrp	x8, _MRB_DUMP_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MRB_DUMP_OK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.2:
	ldp	x2, x0, [sp]
	mov	w1, #4
	mov	x3, x20
	bl	_fwrite
	ldr	x8, [sp]
Lloh6:
	adrp	x9, _MRB_DUMP_WRITE_FAULT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MRB_DUMP_WRITE_FAULT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	x0, x8
	csel	w21, w21, w9, eq
LBB0_3:
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_mrb_free
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _MRB_DUMP_INVALID_ARGUMENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MRB_DUMP_INVALID_ARGUMENT@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MRB_DUMP_INVALID_ARGUMENT,4,2  ; @MRB_DUMP_INVALID_ARGUMENT
	.comm	_FLAG_BYTEORDER_NONATIVE,4,2    ; @FLAG_BYTEORDER_NONATIVE
	.comm	_MRB_DUMP_OK,4,2                ; @MRB_DUMP_OK
	.comm	_MRB_DUMP_WRITE_FAULT,4,2       ; @MRB_DUMP_WRITE_FAULT
.subsections_via_symbols
