	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_nci_se_get_bwi
_st_nci_se_get_bwi:                     ## @st_nci_se_get_bwi
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_nci_get_drvdata
	movq	_ST_NCI_ESE_MAX_LENGTH@GOTPCREL(%rip), %r15
	cmpl	$2, (%r15)
	jl	LBB0_5
## %bb.1:
	movq	%rax, %r14
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movslq	%ebx, %rbx
	movl	(%rax,%rbx,4), %edi
	callq	_ST_NCI_ATR_GET_Y_FROM_TD
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_ST_NCI_ATR_TA_PRESENT
	cmpq	$1, %rax
	sbbl	$-1, %ebx
	movl	%r12d, %edi
	callq	_ST_NCI_ATR_TB_PRESENT
	incl	%ebx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	(%r15), %ebx
	jl	LBB0_2
LBB0_5:
	movq	_ST_NCI_ATR_DEFAULT_BWI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_3:
	movq	(%r14), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %eax
	sarl	$4, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ST_NCI_ESE_MAX_LENGTH,4,2      ## @ST_NCI_ESE_MAX_LENGTH
	.comm	_ST_NCI_ATR_DEFAULT_BWI,4,2     ## @ST_NCI_ATR_DEFAULT_BWI
	.no_dead_strip	_st_nci_se_get_bwi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st_nci_se_get_bwi
_st_nci_se_get_bwi:                     ; @st_nci_se_get_bwi
	.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
	bl	_nci_get_drvdata
Lloh0:
	adrp	x21, _ST_NCI_ESE_MAX_LENGTH@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ST_NCI_ESE_MAX_LENGTH@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x0
	mov	w22, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	w0, [x8, w22, sxtw #2]
	bl	_ST_NCI_ATR_GET_Y_FROM_TD
	mov	x20, x0
	bl	_ST_NCI_ATR_TA_PRESENT
	cmp	x0, #0
	cinc	w22, w22, ne
	mov	x0, x20
	bl	_ST_NCI_ATR_TB_PRESENT
	add	w22, w22, #1
	cbnz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x21]
	cmp	w22, w8
	b.lt	LBB0_2
LBB0_4:
Lloh2:
	adrp	x8, _ST_NCI_ATR_DEFAULT_BWI@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ST_NCI_ATR_DEFAULT_BWI@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_5:
	ldr	x8, [x19]
	ldr	w8, [x8, w22, sxtw #2]
	asr	w0, w8, #4
LBB0_6:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ST_NCI_ESE_MAX_LENGTH,4,2      ; @ST_NCI_ESE_MAX_LENGTH
	.comm	_ST_NCI_ATR_DEFAULT_BWI,4,2     ; @ST_NCI_ATR_DEFAULT_BWI
	.no_dead_strip	_st_nci_se_get_bwi
.subsections_via_symbols
