	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lzma2_header_lzma
_lzma2_header_lzma:                     ## @lzma2_header_lzma
	.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
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpl	$0, (%rbx)
	setg	%dil
	callq	_assert
	movl	(%rbx), %eax
	movq	_LZMA2_UNCOMPRESSED_MAX@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setle	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpl	$0, 4(%rbx)
	setg	%dil
	callq	_assert
	movl	4(%rbx), %eax
	movq	_LZMA2_CHUNK_MAX@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setle	%dil
	callq	_assert
	cmpl	$0, 8(%rbx)
	je	LBB0_4
## %bb.1:
	cmpl	$0, 12(%rbx)
	movq	16(%rbx), %rax
	je	LBB0_3
## %bb.2:
	movl	$224, (%rax)
	movl	$224, %r8d
	xorl	%ecx, %ecx
	jmp	LBB0_7
LBB0_4:
	cmpl	$0, 24(%rbx)
	movq	16(%rbx), %rax
	je	LBB0_6
## %bb.5:
	movl	$160, 4(%rax)
	movl	$1, %ecx
	movl	$160, %r8d
	jmp	LBB0_7
LBB0_3:
	movl	$192, (%rax)
	movl	$192, %r8d
	xorl	%ecx, %ecx
	jmp	LBB0_7
LBB0_6:
	movl	$128, 4(%rax)
	movl	$1, %ecx
	movl	$128, %r8d
LBB0_7:
	movq	%rcx, 32(%rbx)
	movl	(%rbx), %edx
	decl	%edx
	movzbl	%dh, %edi
	movzbl	%dl, %esi
	sarl	$16, %edx
	addl	%r8d, %edx
	movl	%edx, (%rax,%rcx,4)
	movl	%edi, 4(%rax,%rcx,4)
	movl	%esi, 8(%rax,%rcx,4)
	movl	4(%rbx), %edx
	decl	%edx
	movzbl	%dl, %esi
	sarl	$8, %edx
	movl	%edx, 12(%rax,%rcx,4)
	movl	%esi, 16(%rax,%rcx,4)
	cmpl	$0, 8(%rbx)
	je	LBB0_9
## %bb.8:
	leaq	40(%rbx), %rdi
	leaq	(%rax,%rcx,4), %rsi
	addq	$20, %rsi
	callq	_lzma_lzma_lclppb_encode
LBB0_9:
	movq	$0, 8(%rbx)
	movl	$0, 24(%rbx)
	movq	_LZMA2_HEADER_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, 4(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LZMA2_UNCOMPRESSED_MAX,4,2     ## @LZMA2_UNCOMPRESSED_MAX
	.comm	_LZMA2_CHUNK_MAX,4,2            ## @LZMA2_CHUNK_MAX
	.comm	_LZMA2_HEADER_MAX,8,3           ## @LZMA2_HEADER_MAX
	.no_dead_strip	_lzma2_header_lzma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lzma2_header_lzma
_lzma2_header_lzma:                     ; @lzma2_header_lzma
	.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
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #0
	cset	w0, gt
	bl	_assert
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _LZMA2_UNCOMPRESSED_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LZMA2_UNCOMPRESSED_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, le
	bl	_assert
	ldr	w8, [x19, #4]
	cmp	w8, #0
	cset	w0, gt
	bl	_assert
	ldr	w8, [x19, #4]
Lloh3:
	adrp	x9, _LZMA2_CHUNK_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LZMA2_CHUNK_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, le
	bl	_assert
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	w9, [x19, #12]
	ldr	x8, [x19, #16]
	mov	x10, #0
	cbz	w9, LBB0_5
; %bb.2:
	mov	w9, #224
	str	w9, [x8]
	b	LBB0_8
LBB0_3:
	ldr	w9, [x19, #24]
	ldr	x8, [x19, #16]
	cbz	w9, LBB0_6
; %bb.4:
	mov	w9, #160
	b	LBB0_7
LBB0_5:
	mov	w9, #192
	str	w9, [x8]
	b	LBB0_8
LBB0_6:
	mov	w9, #128
LBB0_7:
	str	w9, [x8, #4]
	mov	w10, #1
LBB0_8:
	str	x10, [x19, #32]
	ldr	w11, [x19]
	sub	w11, w11, #1
	add	x8, x8, x10, lsl #2
	add	w9, w9, w11, asr #16
	ubfx	w10, w11, #8, #8
	stp	w9, w10, [x8]
	and	w9, w11, #0xff
	str	w9, [x8, #8]
	ldr	w9, [x19, #4]
	sub	w9, w9, #1
	asr	w10, w9, #8
	and	w9, w9, #0xff
	stp	w10, w9, [x8, #12]
	ldr	w9, [x19, #8]
	cbz	w9, LBB0_10
; %bb.9:
	add	x0, x19, #40
	add	x1, x8, #20
	bl	_lzma_lzma_lclppb_encode
LBB0_10:
	str	wzr, [x19, #24]
Lloh6:
	adrp	x8, _LZMA2_HEADER_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LZMA2_HEADER_MAX@GOTPAGEOFF]
	str	xzr, [x19, #8]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	add	w8, w9, w8
	str	w8, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_LZMA2_UNCOMPRESSED_MAX,4,2     ; @LZMA2_UNCOMPRESSED_MAX
	.comm	_LZMA2_CHUNK_MAX,4,2            ; @LZMA2_CHUNK_MAX
	.comm	_LZMA2_HEADER_MAX,8,3           ; @LZMA2_HEADER_MAX
	.no_dead_strip	_lzma2_header_lzma
.subsections_via_symbols
