	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFFlushData1                 ## -- Begin function TIFFFlushData1
	.p2align	4, 0x90
_TIFFFlushData1:                        ## @TIFFFlushData1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	$1, %eax
	cmpq	$0, (%rdi)
	jle	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movq	_TIFF_BUF4WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rdi)
	je	LBB0_6
## %bb.2:
	movl	40(%rbx), %esi
	movq	%rbx, %rdi
	callq	_isFillOrder
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	_TIFF_NOBITREV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	jne	LBB0_5
## %bb.4:
	movq	(%rbx), %rsi
	movq	16(%rbx), %rdi
	callq	_TIFFReverseBits
LBB0_5:
	movq	%rbx, %rdi
	callq	_isTiled
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	32(%rbx,%rcx,4), %esi
	movq	(%rbx), %rcx
	movq	16(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_TIFFAppendToStrip
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	setne	%al
	movq	$0, (%rbx)
	movq	16(%rbx), %rcx
	movq	%rcx, 24(%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TIFF_BUF4WRITE,4,2             ## @TIFF_BUF4WRITE
	.comm	_TIFF_NOBITREV,4,2              ## @TIFF_NOBITREV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFFlushData1                 ; -- Begin function TIFFFlushData1
	.p2align	2
_TIFFFlushData1:                        ; @TIFFFlushData1
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x9, _TIFF_BUF4WRITE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TIFF_BUF4WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.2:
	ldr	w1, [x19, #40]
	mov	x0, x19
	bl	_isFillOrder
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	w8, [x19, #8]
Lloh3:
	adrp	x9, _TIFF_NOBITREV@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TIFF_NOBITREV@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.4:
	ldr	x0, [x19, #16]
	ldr	x1, [x19]
	bl	_TIFFReverseBits
LBB0_5:
	mov	x0, x19
	bl	_isTiled
	mov	w8, #36
	mov	w9, #32
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x19, x8]
	ldr	x2, [x19, #16]
	ldr	x3, [x19]
	mov	x0, x19
	bl	_TIFFAppendToStrip
	cmp	w0, #0
	cset	w0, ne
	str	xzr, [x19]
	ldr	x8, [x19, #16]
	str	x8, [x19, #24]
	b	LBB0_7
LBB0_6:
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TIFF_BUF4WRITE,4,2             ; @TIFF_BUF4WRITE
	.comm	_TIFF_NOBITREV,4,2              ; @TIFF_NOBITREV
.subsections_via_symbols
