	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wb_consume
_wb_consume:                            ## @wb_consume
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rsi, %rcx
	movq	8(%rdi), %rax
	movq	(%rax), %r8
	movq	%r8, %rdx
	subq	%rsi, %rdx
	jb	LBB0_2
## %bb.1:
	testq	%r8, %r8
	je	LBB0_2
## %bb.3:
	movq	%rdx, (%rax)
	movq	_LOGICAL_BLOCK_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jae	LBB0_4
## %bb.6:
	popq	%rbp
	jmp	_wb_write_out                   ## TAILCALL
LBB0_2:
	movq	_ARCHIVE_ERRNO_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_archive_set_error
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ## @ARCHIVE_ERRNO_MISC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Internal Programming error: iso9660:wb_consume() size=%jd, wbuff_remaining=%jd"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_LOGICAL_BLOCK_SIZE,8,3         ## @LOGICAL_BLOCK_SIZE
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.no_dead_strip	_wb_consume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wb_consume
_wb_consume:                            ; @wb_consume
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x9, [x0, #8]
	ldr	x4, [x9]
	subs	x8, x4, x1
	ccmp	x4, #0, #4, hs
	b.ne	LBB0_2
; %bb.1:
	mov	x3, x1
Lloh0:
	adrp	x8, _ARCHIVE_ERRNO_MISC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_ERRNO_MISC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
                                        ; kill: def $w3 killed $w3 killed $x3
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_archive_set_error
Lloh5:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	str	x8, [x9]
Lloh7:
	adrp	x9, _LOGICAL_BLOCK_SIZE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _LOGICAL_BLOCK_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_wb_write_out
LBB0_4:
Lloh10:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ; @ARCHIVE_ERRNO_MISC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Internal Programming error: iso9660:wb_consume() size=%jd, wbuff_remaining=%jd"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_LOGICAL_BLOCK_SIZE,8,3         ; @LOGICAL_BLOCK_SIZE
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.no_dead_strip	_wb_consume
.subsections_via_symbols
