	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_decode_crb_addr
_qlcnic_decode_crb_addr:                ## @qlcnic_decode_crb_addr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_crb_addr_transform_setup
	movq	_QLCNIC_ADDR_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_QLCNIC_MAX_CRB_XFORM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %ecx
	testl	%edx, %edx
	jle	LBB0_5
## %bb.1:
	movl	%ebx, %esi
	andl	$-1048576, %esi                 ## imm = 0xFFF00000
	movq	_crb_addr_xform@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	shlq	$20, %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%esi, (%rdi)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$1048576, %rcx                  ## imm = 0x100000
	addq	$4, %rdi
	cmpq	%rcx, %rdx
	jne	LBB0_2
## %bb.4:
	movl	%eax, %ecx
LBB0_5:
	andl	$1048575, %ebx                  ## imm = 0xFFFFF
	cmpl	%eax, %ecx
	cmovel	%r14d, %ebx
	addl	%ecx, %ebx
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_ADDR_ERROR,4,2          ## @QLCNIC_ADDR_ERROR
	.comm	_QLCNIC_MAX_CRB_XFORM,4,2       ## @QLCNIC_MAX_CRB_XFORM
	.comm	_crb_addr_xform,8,3             ## @crb_addr_xform
	.no_dead_strip	_qlcnic_decode_crb_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_decode_crb_addr
_qlcnic_decode_crb_addr:                ; @qlcnic_decode_crb_addr
	.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
	mov	x19, x0
	bl	_crb_addr_transform_setup
Lloh0:
	adrp	x8, _QLCNIC_ADDR_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLCNIC_ADDR_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _QLCNIC_MAX_CRB_XFORM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QLCNIC_MAX_CRB_XFORM@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x9]
	cmp	w12, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x9, #0
	and	w10, w19, #0xfff00000
Lloh6:
	adrp	x11, _crb_addr_xform@GOTPAGE
Lloh7:
	ldr	x11, [x11, _crb_addr_xform@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	lsl	x12, x12, #20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x11]
	cmp	w13, w10
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #256, lsl #12           ; =1048576
	add	x11, x11, #4
	cmp	x12, x9
	b.ne	LBB0_2
LBB0_4:
	mov	x9, x8
LBB0_5:
	and	w10, w19, #0xfffff
	cmp	w9, w8
	csel	w8, wzr, w10, eq
	add	w0, w8, w9
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_ADDR_ERROR,4,2          ; @QLCNIC_ADDR_ERROR
	.comm	_QLCNIC_MAX_CRB_XFORM,4,2       ; @QLCNIC_MAX_CRB_XFORM
	.comm	_crb_addr_xform,8,3             ; @crb_addr_xform
	.no_dead_strip	_qlcnic_decode_crb_addr
.subsections_via_symbols
