	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_83xx_idc_find_reset_owner_id
_qlcnic_83xx_idc_find_reset_owner_id:   ## @qlcnic_83xx_idc_find_reset_owner_id
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movq	_QLC_83XX_IDC_DEV_PARTITION_INFO_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_QLCRDX
	movl	%eax, %r14d
	movl	(%rbx), %edi
	movq	_QLC_83XX_IDC_DEV_PARTITION_INFO_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_QLCRDX
	movq	_QLCNIC_TYPE_NIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r11d
	movq	_QLC_83XX_IDC_MAX_FUNC_PER_PARTITION_INFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	decl	%r13d
	movq	_QLC_83XX_IDC_MAX_CNA_FUNCTIONS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	leal	-1(%r12), %r15d
	movq	_QLCNIC_TYPE_ISCSI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_QLCNIC_TYPE_FCOE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	xorl	%r10d, %r10d
	movl	%r14d, %edi
	xorl	%edx, %edx
	xorl	%esi, %esi
	movl	%r11d, %ebx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%esi, %esi
	movl	%r8d, %ebx
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%rdx), %ecx
	cmpl	%r12d, %edx
	movl	%ecx, %edx
	jge	LBB0_11
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leal	(,%rsi,4), %ecx
	movl	$15, %r9d
	shll	%cl, %r9d
	andl	%edi, %r9d
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %r9d
	andl	$3, %r9d
	cmpl	%ebx, %r9d
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%esi
	cmpl	%r13d, %edx
	cmovel	%eax, %edi
	cmovel	%r10d, %esi
	cmpl	%r15d, %edx
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%edx, %edx
	movl	%r14d, %edi
	cmpl	%r11d, %ebx
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%r8d, %ebx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%esi, %esi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_6
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$0, %esi
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	jne	LBB0_6
## %bb.10:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	jmp	LBB0_11
LBB0_2:
	movl	%edx, %ecx
LBB0_11:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLC_83XX_IDC_DEV_PARTITION_INFO_1,4,2 ## @QLC_83XX_IDC_DEV_PARTITION_INFO_1
	.comm	_QLC_83XX_IDC_DEV_PARTITION_INFO_2,4,2 ## @QLC_83XX_IDC_DEV_PARTITION_INFO_2
	.comm	_QLCNIC_TYPE_NIC,4,2            ## @QLCNIC_TYPE_NIC
	.comm	_QLC_83XX_IDC_MAX_FUNC_PER_PARTITION_INFO,4,2 ## @QLC_83XX_IDC_MAX_FUNC_PER_PARTITION_INFO
	.comm	_QLC_83XX_IDC_MAX_CNA_FUNCTIONS,4,2 ## @QLC_83XX_IDC_MAX_CNA_FUNCTIONS
	.comm	_QLCNIC_TYPE_ISCSI,4,2          ## @QLCNIC_TYPE_ISCSI
	.comm	_QLCNIC_TYPE_FCOE,4,2           ## @QLCNIC_TYPE_FCOE
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_qlcnic_83xx_idc_find_reset_owner_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_83xx_idc_find_reset_owner_id
_qlcnic_83xx_idc_find_reset_owner_id:   ; @qlcnic_83xx_idc_find_reset_owner_id
	.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	x20, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _QLC_83XX_IDC_DEV_PARTITION_INFO_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLC_83XX_IDC_DEV_PARTITION_INFO_1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_QLCRDX
	mov	x19, x0
	ldr	w0, [x20]
Lloh3:
	adrp	x8, _QLC_83XX_IDC_DEV_PARTITION_INFO_2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLC_83XX_IDC_DEV_PARTITION_INFO_2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_QLCRDX
	mov	w14, #0
	mov	w15, #0
Lloh6:
	adrp	x8, _QLCNIC_TYPE_NIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QLCNIC_TYPE_NIC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x8]
Lloh9:
	adrp	x8, _QLC_83XX_IDC_MAX_FUNC_PER_PARTITION_INFO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QLC_83XX_IDC_MAX_FUNC_PER_PARTITION_INFO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x11, _QLC_83XX_IDC_MAX_CNA_FUNCTIONS@GOTPAGE
Lloh13:
	ldr	x11, [x11, _QLC_83XX_IDC_MAX_CNA_FUNCTIONS@GOTPAGEOFF]
	sub	w10, w8, #1
Lloh14:
	ldr	w11, [x11]
	sub	w12, w11, #1
Lloh15:
	adrp	x8, _QLCNIC_TYPE_ISCSI@GOTPAGE
Lloh16:
	ldr	x8, [x8, _QLCNIC_TYPE_ISCSI@GOTPAGEOFF]
Lloh17:
	ldr	w13, [x8]
Lloh18:
	adrp	x8, _QLCNIC_TYPE_FCOE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _QLCNIC_TYPE_FCOE@GOTPAGEOFF]
Lloh20:
	ldr	w16, [x8]
	mov	w17, #15
	mov	x2, x19
	mov	x1, x9
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w14, #0
	mov	w15, #0
	mov	x2, x19
	mov	x1, x13
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w14, #1
	cmp	w14, w11
	mov	x14, x8
	b.ge	LBB0_11
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w8, w15, #2
	lsl	w3, w17, w8
	and	w3, w3, w2
	asr	w8, w3, w8
	and	w8, w8, #0x3
	cmp	w8, w1
	b.eq	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w14, w10
	csel	w2, w0, w2, eq
	csinc	w15, wzr, w15, eq
	cmp	w14, w12
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w1, w9
	b.eq	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w1, w13
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w14, #0
	mov	w15, #0
	mov	x2, x19
	mov	x1, x16
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w1, w16
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w14, #0
	mov	w15, #0
	mov	x2, x19
	b	LBB0_2
LBB0_10:
	mov	x8, x14
LBB0_11:
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh21:
	adrp	x8, _EIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w8, w8
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_QLC_83XX_IDC_DEV_PARTITION_INFO_1,4,2 ; @QLC_83XX_IDC_DEV_PARTITION_INFO_1
	.comm	_QLC_83XX_IDC_DEV_PARTITION_INFO_2,4,2 ; @QLC_83XX_IDC_DEV_PARTITION_INFO_2
	.comm	_QLCNIC_TYPE_NIC,4,2            ; @QLCNIC_TYPE_NIC
	.comm	_QLC_83XX_IDC_MAX_FUNC_PER_PARTITION_INFO,4,2 ; @QLC_83XX_IDC_MAX_FUNC_PER_PARTITION_INFO
	.comm	_QLC_83XX_IDC_MAX_CNA_FUNCTIONS,4,2 ; @QLC_83XX_IDC_MAX_CNA_FUNCTIONS
	.comm	_QLCNIC_TYPE_ISCSI,4,2          ; @QLCNIC_TYPE_ISCSI
	.comm	_QLCNIC_TYPE_FCOE,4,2           ; @QLCNIC_TYPE_FCOE
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_qlcnic_83xx_idc_find_reset_owner_id
.subsections_via_symbols
