	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wb_write_to_temp
_wb_write_to_temp:                      ## @wb_write_to_temp
	.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	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_wb_remaining
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_wb_buffmax
	cmpq	$16385, %r12                    ## imm = 0x4001
	jb	LBB0_5
## %bb.1:
	cmpq	%rax, %rbx
	jne	LBB0_5
## %bb.2:
	movq	(%r14), %rcx
	movq	_LOGICAL_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_6
## %bb.3:
	movq	%r12, %rax
	xorl	%edx, %edx
	divq	%rsi
	movq	%rdx, %r13
	jmp	LBB0_7
LBB0_5:
	movq	%r12, %r13
	jmp	LBB0_10
LBB0_6:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%edx, %r13d
LBB0_7:
	subq	%r13, %r12
	addq	%r12, (%rcx)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_write_to_temp
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.8:
	testq	%r13, %r13
	je	LBB0_17
## %bb.9:
	addq	%r12, %r15
LBB0_10:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %r12
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r14, %rdi
	callq	_wb_buffptr
	movl	%eax, %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wb_consume
	subq	%rbx, %r13
	addq	%rbx, %r15
	cmpq	(%r12), %rax
	jne	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	testq	%r13, %r13
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r14, %rdi
	callq	_wb_remaining
	movq	%r13, %rbx
	cmpq	%rax, %r13
	jbe	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r14, %rdi
	callq	_wb_remaining
	movq	%rax, %rbx
	jmp	LBB0_11
LBB0_15:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_17
LBB0_16:
	movl	(%r12), %eax
LBB0_17:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOGICAL_BLOCK_SIZE,8,3         ## @LOGICAL_BLOCK_SIZE
	.comm	_ARCHIVE_OK,8,3                 ## @ARCHIVE_OK
	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.no_dead_strip	_wb_write_to_temp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wb_write_to_temp
_wb_write_to_temp:                      ; @wb_write_to_temp
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_wb_remaining
	mov	x22, x0
	bl	_wb_buffmax
Lloh0:
	adrp	x23, _ARCHIVE_OK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ARCHIVE_OK@GOTPAGEOFF]
	cmp	x19, #4, lsl #12                ; =16384
	b.ls	LBB0_6
; %bb.1:
	cmp	x22, x0
	b.ne	LBB0_6
; %bb.2:
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _LOGICAL_BLOCK_SIZE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LOGICAL_BLOCK_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	udiv	x10, x19, x9
	mul	x22, x10, x9
	ldr	x9, [x8]
	add	x9, x9, x22
	str	x9, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_write_to_temp
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.3:
	sub	x19, x19, x22
	cbz	x19, LBB0_11
; %bb.4:
	add	x20, x20, x22
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_wb_buffptr
	mov	x1, x20
	mov	x2, x22
	bl	_memcpy
	mov	x0, x21
	mov	x1, x22
	bl	_wb_consume
	ldr	x8, [x23]
	sub	x19, x19, x22
	add	x20, x20, x22
	cmp	x0, x8
	b.ne	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x19, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_wb_remaining
	mov	x22, x19
	cmp	x19, x0
	b.ls	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_wb_remaining
	mov	x22, x0
	b	LBB0_5
LBB0_9:
Lloh5:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_10:
	ldr	w0, [x23]
LBB0_11:
                                        ; kill: def $w0 killed $w0 killed $x0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LOGICAL_BLOCK_SIZE,8,3         ; @LOGICAL_BLOCK_SIZE
	.comm	_ARCHIVE_OK,8,3                 ; @ARCHIVE_OK
	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.no_dead_strip	_wb_write_to_temp
.subsections_via_symbols
