	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dt_cast
_dt_cast:                               ## @dt_cast
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_dt_node_type_size
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_dt_node_type_size
	cmpq	%r15, %rax
	jae	LBB0_2
## %bb.1:
	movq	_NBBY@GOTPCREL(%rip), %rdx
	movl	$4, %ecx
	subl	%eax, %ecx
	imull	(%rdx), %ecx
	movl	(%r14), %eax
	shll	%cl, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %eax
	movl	%eax, (%r14)
	jmp	LBB0_6
LBB0_2:
	jbe	LBB0_6
## %bb.3:
	movq	_NBBY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	$4, %edx
	subl	%r15d, %edx
	imull	%esi, %edx
	movl	(%r14), %edi
	movl	%edx, %ecx
	shll	%cl, %edi
	movl	%edi, (%r14)
	movq	_DT_NF_SIGNED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%r14)
	je	LBB0_5
## %bb.4:
	subl	%r15d, %eax
	imull	%eax, %esi
	movl	%esi, %ecx
	sarl	%cl, %edi
	subl	%esi, %edx
LBB0_5:
	movl	%edx, %ecx
	sarl	%cl, %edi
	movl	%edi, (%r14)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NBBY,4,2                       ## @NBBY
	.comm	_DT_NF_SIGNED,4,2               ## @DT_NF_SIGNED
	.no_dead_strip	_dt_cast
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dt_cast
_dt_cast:                               ; @dt_cast
	.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, x1
	mov	x21, x0
	mov	x0, x1
	bl	_dt_node_type_size
	mov	x20, x0
	mov	x0, x21
	bl	_dt_node_type_size
	cmp	x0, x20
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _NBBY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NBBY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #4
	sub	w9, w9, w0
	mul	w8, w8, w9
	ldr	w9, [x19]
	lsl	w9, w9, w8
	asr	w8, w9, w8
	b	LBB0_4
LBB0_2:
	b.ls	LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _NBBY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NBBY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, #4
	sub	w9, w9, w20
	mul	w9, w8, w9
	ldp	w10, w11, [x19]
	lsl	w10, w10, w9
	str	w10, [x19]
Lloh6:
	adrp	x12, _DT_NF_SIGNED@GOTPAGE
Lloh7:
	ldr	x12, [x12, _DT_NF_SIGNED@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x12]
	asr	w13, w10, w9
	sub	w14, w0, w20
	mul	w8, w8, w14
	asr	w10, w10, w8
	sub	w8, w9, w8
	asr	w8, w10, w8
	tst	w12, w11
	csel	w8, w13, w8, eq
LBB0_4:
	str	w8, [x19]
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NBBY,4,2                       ; @NBBY
	.comm	_DT_NF_SIGNED,4,2               ; @DT_NF_SIGNED
	.no_dead_strip	_dt_cast
.subsections_via_symbols
