	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_iso9660_data
_write_iso9660_data:                    ## @write_iso9660_data
	.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
	movq	%rdi, %r12
	movq	8(%rdi), %r15
	cmpq	$0, (%r15)
	js	LBB0_4
## %bb.1:
	movq	%rdx, %r14
	cmpq	$0, 40(%r15)
	je	LBB0_6
## %bb.2:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	leaq	(%rax,%r14), %rcx
	movq	_MULTI_EXTENT_SIZE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rbx
	movq	_LOGICAL_BLOCK_SIZE@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	subq	%rdx, %rbx
	cmpq	%rbx, %rcx
	jae	LBB0_10
LBB0_6:
	movq	%r14, %r13
	cmpq	$0, 24(%r15)
	je	LBB0_8
LBB0_7:
	movq	%r12, %rdi
	movq	%rsi, %rbx
	movq	%r13, %rdx
	callq	_zisofs_detect_magic
	movq	%rbx, %rsi
LBB0_8:
	cmpq	$0, 16(%r15)
	je	LBB0_15
## %bb.9:
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_zisofs_write_to_temp
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
	jmp	LBB0_23
LBB0_4:
	movq	_ARCHIVE_ERRNO_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_5:
	movq	%r12, %rdi
	callq	_archive_set_error
LBB0_22:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_23:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	subq	%rax, %rbx
	cmpq	$0, 24(%r15)
	je	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	movq	%rsi, %r13
	movq	%rbx, %rdx
	callq	_zisofs_detect_magic
	movq	%r13, %rsi
LBB0_12:
	cmpq	$0, 16(%r15)
	je	LBB0_17
## %bb.13:
	movq	%r12, %rdi
	movq	%rsi, %r13
	movq	%rbx, %rdx
	callq	_zisofs_write_to_temp
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.14:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %rsi
	jmp	LBB0_19
LBB0_15:
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_wb_write_to_temp
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.16:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	addq	%r13, (%rax)
	jmp	LBB0_23
LBB0_17:
	movq	%r12, %rdi
	movq	%rsi, %r13
	movq	%rbx, %rdx
	callq	_wb_write_to_temp
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.18:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%rsi, (%rax)
LBB0_19:
	movq	%r12, %rdi
	callq	_wb_write_padding_to_temp
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.20:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	_LOGICAL_BLOCK_SIZE@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	addq	%rcx, %rdx
	decq	%rdx
	movq	_LOGICAL_BLOCK_BITS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrq	%cl, %rdx
	movl	%edx, 8(%rax)
	movl	$1, %edi
	movl	$32, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_24
## %bb.21:
	addq	%rbx, %r13
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %r13
	subq	%rbx, %r13
	movq	%r12, %rdi
	movq	%rax, %rbx
	callq	_wb_offset
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, 24(%rbx)
	movq	8(%r15), %rax
	movq	(%rax), %rcx
	movq	%rbx, 16(%rcx)
	movq	%rbx, (%rax)
	cmpq	$0, 24(%r15)
	jne	LBB0_7
	jmp	LBB0_8
LBB0_24:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ## @ARCHIVE_ERRNO_MISC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't create temporary file"

	.comm	_ARCHIVE_FATAL,8,3              ## @ARCHIVE_FATAL
	.comm	_MULTI_EXTENT_SIZE,8,3          ## @MULTI_EXTENT_SIZE
	.comm	_LOGICAL_BLOCK_SIZE,4,2         ## @LOGICAL_BLOCK_SIZE
	.comm	_ARCHIVE_OK,8,3                 ## @ARCHIVE_OK
	.comm	_LOGICAL_BLOCK_BITS,4,2         ## @LOGICAL_BLOCK_BITS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Can't allocate content data"

	.no_dead_strip	_write_iso9660_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_iso9660_data
_write_iso9660_data:                    ; @write_iso9660_data
	.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	x20, x0
	ldr	x24, [x0, #8]
	ldr	x8, [x24]
	tbnz	x8, #63, LBB0_7
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	ldr	x8, [x24, #40]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x24, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	add	x10, x8, x19
Lloh0:
	adrp	x9, _MULTI_EXTENT_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MULTI_EXTENT_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x23, _LOGICAL_BLOCK_SIZE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _LOGICAL_BLOCK_SIZE@GOTPAGEOFF]
	ldrsw	x11, [x23]
	sub	x9, x9, x11
	cmp	x10, x9
	b.hs	LBB0_11
LBB0_3:
	mov	x22, x19
	ldr	x8, [x24, #24]
	cbz	x8, LBB0_5
LBB0_4:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_zisofs_detect_magic
LBB0_5:
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_16
; %bb.6:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_zisofs_write_to_temp
Lloh5:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _ARCHIVE_FATAL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ARCHIVE_FATAL@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x0, x8
	csel	x19, x19, x9, eq
	b	LBB0_10
LBB0_7:
Lloh11:
	adrp	x8, _ARCHIVE_ERRNO_MISC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ARCHIVE_ERRNO_MISC@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
LBB0_8:
	mov	x0, x20
	bl	_archive_set_error
LBB0_9:
Lloh16:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
Lloh18:
	ldr	x19, [x8]
LBB0_10:
	mov	x0, x19
	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
LBB0_11:
	sub	x22, x9, x8
	ldr	x8, [x24, #24]
	cbz	x8, LBB0_13
; %bb.12:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_zisofs_detect_magic
LBB0_13:
	ldr	x8, [x24, #16]
Lloh19:
	adrp	x25, _ARCHIVE_OK@GOTPAGE
Lloh20:
	ldr	x25, [x25, _ARCHIVE_OK@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	cbz	x8, LBB0_18
; %bb.14:
	bl	_zisofs_write_to_temp
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.15:
	ldr	x8, [x24, #8]
	ldr	x8, [x8]
	ldr	x1, [x8]
	b	LBB0_20
LBB0_16:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_wb_write_to_temp
Lloh21:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.17:
	ldr	x8, [x24, #8]
	ldr	x8, [x8]
	ldr	x9, [x8]
	add	x9, x9, x22
	str	x9, [x8]
	b	LBB0_10
LBB0_18:
	bl	_wb_write_to_temp
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.19:
	ldr	x8, [x24, #8]
	ldr	x8, [x8]
	ldr	x9, [x8]
	add	x1, x9, x22
	str	x1, [x8]
LBB0_20:
	mov	x0, x20
	bl	_wb_write_padding_to_temp
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.21:
	ldr	x8, [x24, #8]
	ldr	x8, [x8]
	ldr	x9, [x8]
	ldrsw	x10, [x23]
	add	x9, x9, x10
	sub	x9, x9, #1
Lloh24:
	adrp	x10, _LOGICAL_BLOCK_BITS@GOTPAGE
Lloh25:
	ldr	x10, [x10, _LOGICAL_BLOCK_BITS@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	lsr	x9, x9, x10
	str	w9, [x8, #8]
	mov	w0, #1
	mov	w1, #32
	bl	_calloc
	cbz	x0, LBB0_23
; %bb.22:
	mov	x23, x0
	add	x21, x21, x22
	sub	x22, x19, x22
	mov	x0, x20
	bl	_wb_offset
	str	w0, [x23, #24]
	ldr	x8, [x24, #8]
	ldr	x9, [x8]
	str	x23, [x9, #16]
	str	x23, [x8]
	ldr	x8, [x24, #24]
	cbnz	x8, LBB0_4
	b	LBB0_5
LBB0_23:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x2, l_.str.1@PAGE
Lloh31:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_8
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ; @ARCHIVE_ERRNO_MISC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't create temporary file"

	.comm	_ARCHIVE_FATAL,8,3              ; @ARCHIVE_FATAL
	.comm	_MULTI_EXTENT_SIZE,8,3          ; @MULTI_EXTENT_SIZE
	.comm	_LOGICAL_BLOCK_SIZE,4,2         ; @LOGICAL_BLOCK_SIZE
	.comm	_ARCHIVE_OK,8,3                 ; @ARCHIVE_OK
	.comm	_LOGICAL_BLOCK_BITS,4,2         ; @LOGICAL_BLOCK_BITS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Can't allocate content data"

	.no_dead_strip	_write_iso9660_data
.subsections_via_symbols
