	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lzma2_bound
_lzma2_bound:                           ## @lzma2_bound
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edi killed $edi def $rdi
	movq	_COMPRESSED_SIZE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	cmpl	%edi, %ecx
	jl	LBB0_2
## %bb.1:
	movq	_LZMA2_CHUNK_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	(%rdi,%rsi), %eax
	decl	%eax
	cltd
	idivl	%esi
                                        ## kill: def $eax killed $eax def $rax
	movq	_LZMA2_HEADER_UNCOMPRESSED@GOTPCREL(%rip), %rdx
	imull	(%rdx), %eax
	leal	1(%rax), %edx
	subl	%edx, %ecx
	xorl	%edx, %edx
	cmpl	%edi, %ecx
	leal	1(%rax,%rdi), %eax
	cmovll	%edx, %eax
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMPRESSED_SIZE_MAX,4,2        ## @COMPRESSED_SIZE_MAX
	.comm	_LZMA2_CHUNK_MAX,4,2            ## @LZMA2_CHUNK_MAX
	.comm	_LZMA2_HEADER_UNCOMPRESSED,4,2  ## @LZMA2_HEADER_UNCOMPRESSED
	.no_dead_strip	_lzma2_bound
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lzma2_bound
_lzma2_bound:                           ; @lzma2_bound
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _COMPRESSED_SIZE_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMPRESSED_SIZE_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
	ret
LBB0_2:
Lloh3:
	adrp	x9, _LZMA2_CHUNK_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LZMA2_CHUNK_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w10, w0, w9
	sub	w10, w10, #1
	sdiv	w9, w10, w9
Lloh6:
	adrp	x10, _LZMA2_HEADER_UNCOMPRESSED@GOTPAGE
Lloh7:
	ldr	x10, [x10, _LZMA2_HEADER_UNCOMPRESSED@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w11, wzr, #0x1
	madd	w9, w10, w9, w11
	add	w10, w9, w0
	sub	w8, w8, w9
	cmp	w8, w0
	csel	w0, wzr, w10, lt
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_COMPRESSED_SIZE_MAX,4,2        ; @COMPRESSED_SIZE_MAX
	.comm	_LZMA2_CHUNK_MAX,4,2            ; @LZMA2_CHUNK_MAX
	.comm	_LZMA2_HEADER_UNCOMPRESSED,4,2  ; @LZMA2_HEADER_UNCOMPRESSED
	.no_dead_strip	_lzma2_bound
.subsections_via_symbols
