	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_convert_bin_to_iso             ## -- Begin function convert_bin_to_iso
	.p2align	4, 0x90
_convert_bin_to_iso:                    ## @convert_bin_to_iso
	.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	$9416, %eax                     ## imm = 0x24C8
	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
	movl	%ecx, %r12d
	movq	%rdx, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, %rdi
	callq	_chdir
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_fopen
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_printf
	movl	$1, %edi
	callq	_myexit
LBB0_2:
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_printf
	testl	%r12d, %r12d
	jle	LBB0_5
## %bb.3:
	xorl	%r13d, %r13d
	movl	%r12d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %eax
	cltd
	idivl	%r12d
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	leaq	-9456(%rbp), %rdi
	movl	$2352, %esi                     ## imm = 0x930
	movl	$1, %edx
	movq	%r14, %rcx
	callq	_fread
	leaq	-9392(%rbp), %rdi
	movl	$2048, %esi                     ## imm = 0x800
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_fwrite
	addl	$100, %r13d
	decl	%r15d
	jne	LBB0_4
LBB0_5:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	%rbx, %rdi
	callq	_fclose
	leaq	L_.str.5(%rip), %rdi
	callq	_chdir
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	addq	$9416, %rsp                     ## imm = 0x24C8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wb"

L_.str.1:                               ## @.str.1
	.asciz	"failed to open: %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"writing iso %s, %x sectors\n"

L_.str.3:                               ## @.str.3
	.asciz	"\b\b\b%3i"

	.comm	_stdout,4,2                     ## @stdout
L_.str.5:                               ## @.str.5
	.asciz	".."

L_str:                                  ## @str
	.asciz	"\b\b\b100"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_convert_bin_to_iso             ; -- Begin function convert_bin_to_iso
	.p2align	2
_convert_bin_to_iso:                    ; @convert_bin_to_iso
	.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, #9440
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #2, lsl #12             ; =8192
	sub	sp, sp, #1248
	mov	x19, x3
	mov	x22, x2
	mov	x20, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	mov	x0, x1
	bl	_chdir
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_fopen
	mov	x21, x0
	cbnz	x0, LBB0_2
; %bb.1:
	str	x22, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	mov	w0, #1
	bl	_myexit
LBB0_2:
	stp	x22, x19, [sp]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	cmp	w19, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w24, #0
	add	x8, sp, #24
	add	x22, x8, #64
Lloh11:
	adrp	x23, l_.str.3@PAGE
Lloh12:
	add	x23, x23, l_.str.3@PAGEOFF
Lloh13:
	adrp	x25, _stdout@GOTPAGE
Lloh14:
	ldr	x25, [x25, _stdout@GOTPAGEOFF]
	mov	x26, x19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sdiv	w8, w24, w19
	str	x8, [sp]
	mov	x0, x23
	bl	_printf
	ldr	w0, [x25]
	bl	_fflush
	add	x0, sp, #24
	mov	w1, #2352
	mov	w2, #1
	mov	x3, x20
	bl	_fread
	mov	x0, x22
	mov	w1, #2048
	mov	w2, #1
	mov	x3, x21
	bl	_fwrite
	add	w24, w24, #100
	subs	w26, w26, #1
	b.ne	LBB0_4
LBB0_5:
Lloh15:
	adrp	x0, l_str@PAGE
Lloh16:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	x0, x21
	bl	_fclose
Lloh17:
	adrp	x0, l_.str.5@PAGE
Lloh18:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_chdir
	ldur	x8, [x29, #-88]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	w0, #0
	add	sp, sp, #2, lsl #12             ; =8192
	add	sp, sp, #1248
	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_7:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wb"

l_.str.1:                               ; @.str.1
	.asciz	"failed to open: %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"writing iso %s, %x sectors\n"

l_.str.3:                               ; @.str.3
	.asciz	"\b\b\b%3i"

	.comm	_stdout,4,2                     ; @stdout
l_.str.5:                               ; @.str.5
	.asciz	".."

l_str:                                  ; @str
	.asciz	"\b\b\b100"

.subsections_via_symbols
