	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bna_reg_offset_check
_bna_reg_offset_check:                  ## @bna_reg_offset_check
	.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
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $esi killed $esi def $rsi
	movl	%esi, %eax
	shrl	$15, %eax
	andl	$7, %eax
	cmpl	$1, %eax
	je	LBB0_4
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	leal	(%rsi,%rdx,4), %eax
	cmpl	$32768, %eax                    ## imm = 0x8000
	jle	LBB0_8
LBB0_3:
	movq	_BFA_STATUS_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	leal	(%rsi,%rdx,4), %eax
	cmpl	$65536, %eax                    ## imm = 0x10000
	jg	LBB0_3
LBB0_8:
	movq	_BFA_STATUS_OK@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	leal	(%rsi,%rdx,4), %ebx
	callq	_BFA_REG_ADDRMSK
	cmpl	%eax, %ebx
	jg	LBB0_3
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_BFA_STATUS_EINVAL,4,2          ## @BFA_STATUS_EINVAL
	.comm	_BFA_STATUS_OK,4,2              ## @BFA_STATUS_OK
	.no_dead_strip	_bna_reg_offset_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bna_reg_offset_check
_bna_reg_offset_check:                  ; @bna_reg_offset_check
	.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
	ubfx	w8, w1, #15, #3
	cmp	w8, #1
	b.eq	LBB0_4
; %bb.1:
	cbnz	w8, LBB0_7
; %bb.2:
	add	w8, w1, w2, lsl #2
	cmp	w8, #8, lsl #12                 ; =32768
	b.le	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _BFA_STATUS_EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BFA_STATUS_EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	add	w8, w1, w2, lsl #2
	cmp	w8, #16, lsl #12                ; =65536
	b.gt	LBB0_3
LBB0_5:
Lloh2:
	adrp	x8, _BFA_STATUS_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BFA_STATUS_OK@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	add	w19, w1, w2, lsl #2
	bl	_BFA_REG_ADDRMSK
	cmp	w19, w0
	b.gt	LBB0_3
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_BFA_STATUS_EINVAL,4,2          ; @BFA_STATUS_EINVAL
	.comm	_BFA_STATUS_OK,4,2              ; @BFA_STATUS_OK
	.no_dead_strip	_bna_reg_offset_check
.subsections_via_symbols
