	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imm_dec
_imm_dec:                               ## @imm_dec
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_PTI_MAP_AMD3DNOW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.4:
	cmpq	%r14, 8(%rbx)
	jle	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_get_byte
	movl	%eax, 32(%rbx)
	incl	%r14d
	jmp	LBB0_10
LBB0_1:
	movq	_pte_internal@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movq	%rbx, %rdi
	callq	_set_imm_bytes
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	addq	16(%rbx), %r14
	addq	24(%rbx), %r14
	cmpq	%r14, 8(%rbx)
	jge	LBB0_10
LBB0_5:
	movq	_pte_bad_insn@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movl	%eax, %r14d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_pte_internal,4,2               ## @pte_internal
	.comm	_PTI_MAP_AMD3DNOW,8,3           ## @PTI_MAP_AMD3DNOW
	.comm	_pte_bad_insn,4,2               ## @pte_bad_insn
	.no_dead_strip	_imm_dec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imm_dec
_imm_dec:                               ; @imm_dec
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PTI_MAP_AMD3DNOW@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PTI_MAP_AMD3DNOW@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [x20, #8]
	cmp	x8, x19
	b.le	LBB0_7
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_get_byte
	str	w0, [x20, #32]
	add	w0, w19, #1
	b	LBB0_9
LBB0_4:
Lloh3:
	adrp	x8, _pte_internal@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pte_internal@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	mov	x0, x20
	bl	_set_imm_bytes
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_9
; %bb.6:
	ldp	x9, x8, [x20, #16]
	ldr	x10, [x20, #8]
	add	x9, x9, x19
	add	x0, x9, x8
	cmp	x10, x0
	b.ge	LBB0_9
LBB0_7:
Lloh5:
	adrp	x8, _pte_bad_insn@GOTPAGE
Lloh6:
	ldr	x8, [x8, _pte_bad_insn@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
                                        ; kill: def $w0 killed $w0 killed $x0
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_pte_internal,4,2               ; @pte_internal
	.comm	_PTI_MAP_AMD3DNOW,8,3           ; @PTI_MAP_AMD3DNOW
	.comm	_pte_bad_insn,4,2               ; @pte_bad_insn
	.no_dead_strip	_imm_dec
.subsections_via_symbols
