	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_bfm_to_bfi
_convert_bfm_to_bfi:                    ## @convert_bfm_to_bfi
	.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	(%rdi), %rcx
	movl	40(%rcx), %esi
	movl	56(%rcx), %edx
	xorl	%eax, %eax
	cmpl	%esi, %edx
	jge	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	32(%rcx), %rax
	movq	_AARCH64_OPND_QLF_imm_0_31@GOTPCREL(%rip), %r8
	xorl	%edi, %edi
	cmpq	(%r8), %rax
	setne	%dil
	shll	$5, %edi
	movl	%edi, %eax
	subl	%esi, %eax
	addl	$32, %eax
	orl	$31, %edi
	andl	%eax, %edi
	movl	%edi, 40(%rcx)
	incl	%edx
	movl	%edx, 56(%rcx)
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_reset_operand_qualifier
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_reset_operand_qualifier
	movl	$1, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AARCH64_OPND_QLF_imm_0_31,8,3  ## @AARCH64_OPND_QLF_imm_0_31
	.no_dead_strip	_convert_bfm_to_bfi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_bfm_to_bfi
_convert_bfm_to_bfi:                    ; @convert_bfm_to_bfi
	.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]
	ldr	w10, [x8, #40]
	ldr	w9, [x8, #56]
	cmp	w9, w10
	b.ge	LBB0_2
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x11, _AARCH64_OPND_QLF_imm_0_31@GOTPAGE
Lloh1:
	ldr	x11, [x11, _AARCH64_OPND_QLF_imm_0_31@GOTPAGEOFF]
	ldr	x12, [x8, #32]
Lloh2:
	ldr	x11, [x11]
	cmp	x12, x11
	mov	w11, #64
	mov	w12, #32
	csel	w11, w12, w11, eq
	sub	w12, w11, #1
	sub	w10, w11, w10
	and	w10, w10, w12
	str	w10, [x8, #40]
	add	w9, w9, #1
	str	w9, [x8, #56]
	mov	w1, #2
	bl	_reset_operand_qualifier
	mov	x0, x19
	mov	w1, #3
	bl	_reset_operand_qualifier
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AARCH64_OPND_QLF_imm_0_31,8,3  ; @AARCH64_OPND_QLF_imm_0_31
	.no_dead_strip	_convert_bfm_to_bfi
.subsections_via_symbols
