	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ddb_init_tempmon
_ddb_init_tempmon:                      ## @ddb_init_tempmon
	.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	16(%rdi), %rax
	cmpl	$0, 8(%rax)
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rax), %rax
	movq	_DDB_OCTOPUS_MAX_CT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	cmpl	$65538, 12(%rbx)                ## imm = 0x10002
	jge	LBB0_4
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	leaq	8(%rbx), %rdi
	callq	_spin_lock_init
	movq	(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	%rbx, %rdi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_tempmon_init                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DDB_OCTOPUS_MAX_CT,8,3         ## @DDB_OCTOPUS_MAX_CT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"init_tempmon\n"

	.no_dead_strip	_ddb_init_tempmon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ddb_init_tempmon
_ddb_init_tempmon:                      ; @ddb_init_tempmon
	.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, #16]
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _DDB_OCTOPUS_MAX_CT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DDB_OCTOPUS_MAX_CT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x19, #12]
	mov	w9, #2
	movk	w9, #1, lsl #16
	cmp	w8, w9
	b.ge	LBB0_4
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	add	x0, x19, #8
	bl	_spin_lock_init
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_tempmon_init
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DDB_OCTOPUS_MAX_CT,8,3         ; @DDB_OCTOPUS_MAX_CT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"init_tempmon\n"

	.no_dead_strip	_ddb_init_tempmon
.subsections_via_symbols
