	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function canpromote
_canpromote:                            ## @canpromote
	.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	_chaninfo@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movq	8(%r10), %rcx
	movslq	%edi, %r8
	movq	%r8, %r9
	shlq	$4, %r9
	movl	(%rcx,%r9), %eax
	notl	%eax
	testl	%eax, %esi
	jne	LBB0_11
## %bb.1:
	leal	1(%rdi), %eax
	movslq	(%r10), %r11
	cmpl	%r11d, %eax
	jge	LBB0_4
## %bb.2:
	movslq	%eax, %r10
	shlq	$4, %r10
	movq	8(%rcx,%r10), %rsi
	cmpq	8(%rcx,%r9), %rsi
	jne	LBB0_4
## %bb.3:
	movl	(%rcx,%r10), %esi
	notl	%esi
	testl	%esi, %edx
	je	LBB0_10
LBB0_4:
	testl	%r11d, %r11d
	je	LBB0_11
## %bb.5:
	addq	%rcx, %r9
	addq	$8, %r9
	addq	$8, %rcx
	xorl	%eax, %eax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rax
	addq	$16, %rcx
	cmpq	%rax, %r11
	je	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, %r8
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rcx), %rsi
	cmpq	(%r9), %rsi
	jne	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	-8(%rcx), %esi
	notl	%esi
	testl	%esi, %edx
	jne	LBB0_6
LBB0_10:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_11:
	movl	%edi, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_chaninfo,8,3                   ## @chaninfo
	.no_dead_strip	_canpromote
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function canpromote
_canpromote:                            ; @canpromote
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _chaninfo@GOTPAGE
Lloh1:
	ldr	x8, [x8, _chaninfo@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
	ldr	x11, [x10, #8]
	sbfiz	x8, x0, #4, #32
	ldr	w8, [x11, x8]
	bics	wzr, w1, w8
	b.ne	LBB0_12
; %bb.1:
	sxtw	x9, w0
	add	x8, x9, #1
	ldrsw	x10, [x10]
	cmp	w8, w10
	b.ge	LBB0_4
; %bb.2:
	add	x12, x11, x8, lsl #4
	ldr	x12, [x12, #8]
	add	x13, x11, x9, lsl #4
	ldr	x13, [x13, #8]
	cmp	x12, x13
	b.ne	LBB0_4
; %bb.3:
	lsl	x12, x8, #4
	ldr	w12, [x11, x12]
	bics	wzr, w2, w12
	b.eq	LBB0_11
LBB0_4:
	cbz	w10, LBB0_12
; %bb.5:
	mov	x8, #0
	add	x12, x11, x9, lsl #4
	add	x12, x12, #8
	add	x11, x11, #8
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x8, #1
	add	x11, x11, #16
	cmp	x10, x8
	b.eq	LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x9, x8
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x13, [x11]
	ldr	x14, [x12]
	cmp	x13, x14
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldur	w13, [x11, #-8]
	bics	wzr, w2, w13
	b.ne	LBB0_6
; %bb.10:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
LBB0_11:
	mov	x0, x8
LBB0_12:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_chaninfo,8,3                   ; @chaninfo
	.no_dead_strip	_canpromote
.subsections_via_symbols
