	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tree_floor_log2                ## -- Begin function tree_floor_log2
	.p2align	4, 0x90
_tree_floor_log2:                       ## @tree_floor_log2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	callq	_STRIP_NOPS
	movl	%ebx, %edi
	callq	_TREE_CODE
	movq	_COMPLEX_CST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.13:
	movl	%ebx, %edi
	callq	_TREE_REALPART
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tree_log2                      ## TAILCALL
LBB0_1:
	movl	%ebx, %edi
	callq	_TREE_TYPE
	movl	%eax, %edi
	callq	_POINTER_TYPE_P
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_POINTER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_4
LBB0_3:
	movl	%ebx, %edi
	callq	_TREE_TYPE
	movl	%eax, %edi
	callq	_TYPE_PRECISION
	movl	%eax, %r15d
LBB0_4:
	movl	%ebx, %edi
	callq	_TREE_INT_CST_HIGH
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_TREE_INT_CST_LOW
	movq	_HOST_BITS_PER_WIDE_INT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.5:
	leal	(%rbx,%rbx), %ecx
	cmpl	%ecx, %r15d
	je	LBB0_8
## %bb.6:
	movl	%r15d, %ecx
	subl	%ebx, %ecx
	jle	LBB0_10
## %bb.7:
	movl	$-1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	notl	%edx
	andl	%edx, %r14d
LBB0_8:
	testl	%r14d, %r14d
	je	LBB0_12
## %bb.9:
	movl	%r14d, %edi
	callq	_floor_log2
	addl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	jge	LBB0_12
## %bb.11:
	movl	$-1, %edx
	movl	%r15d, %ecx
	shll	%cl, %edx
	notl	%edx
	andl	%edx, %eax
LBB0_12:
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_floor_log2                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_COMPLEX_CST,8,3                ## @COMPLEX_CST
	.comm	_POINTER_SIZE,4,2               ## @POINTER_SIZE
	.comm	_HOST_BITS_PER_WIDE_INT,4,2     ## @HOST_BITS_PER_WIDE_INT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tree_floor_log2                ; -- Begin function tree_floor_log2
	.p2align	2
_tree_floor_log2:                       ; @tree_floor_log2
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_STRIP_NOPS
	mov	x0, x19
	bl	_TREE_CODE
Lloh0:
	adrp	x8, _COMPLEX_CST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMPLEX_CST@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_TREE_REALPART
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_tree_log2
LBB0_2:
	mov	x0, x19
	bl	_TREE_TYPE
	bl	_POINTER_TYPE_P
	cbz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _POINTER_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _POINTER_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_TREE_TYPE
	bl	_TYPE_PRECISION
	mov	x20, x0
LBB0_5:
	mov	x0, x19
	bl	_TREE_INT_CST_HIGH
	mov	x21, x0
	mov	x0, x19
	bl	_TREE_INT_CST_LOW
Lloh6:
	adrp	x8, _HOST_BITS_PER_WIDE_INT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HOST_BITS_PER_WIDE_INT@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
	lsl	w8, w19, #1
	cmp	w20, #0
	ccmp	w20, w8, #4, ne
	b.eq	LBB0_8
; %bb.6:
	subs	w8, w20, w19
	b.le	LBB0_10
; %bb.7:
	mov	w9, #-1
	lsl	w8, w9, w8
	bic	w21, w21, w8
LBB0_8:
	cbz	w21, LBB0_12
; %bb.9:
	mov	x0, x21
	bl	_floor_log2
	add	w0, w0, w19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	b.ge	LBB0_12
; %bb.11:
	mov	w8, #-1
	lsl	w8, w8, w20
	bic	w0, w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_floor_log2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_COMPLEX_CST,8,3                ; @COMPLEX_CST
	.comm	_POINTER_SIZE,4,2               ; @POINTER_SIZE
	.comm	_HOST_BITS_PER_WIDE_INT,4,2     ; @HOST_BITS_PER_WIDE_INT
.subsections_via_symbols
