	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_config_intrpt      ## -- Begin function qlcnic_83xx_config_intrpt
	.p2align	4, 0x90
_qlcnic_83xx_config_intrpt:             ## @qlcnic_83xx_config_intrpt
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movl	(%rax), %ebx
	movq	_QLCNIC_CMD_CONFIG_INTRPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rdi
	movq	%r13, %rsi
	callq	_qlcnic_alloc_mbx_args
	testl	%eax, %eax
	jne	LBB0_13
## %bb.1:
	leal	-1(%rbx), %r15d
	movq	-48(%rbp), %rax
	movl	%r15d, 4(%rax)
	movq	%r13, %rdi
	callq	_qlcnic_sriov_vf_check
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%r13), %rax
	movl	4(%rax), %eax
	shll	$8, %eax
	movq	_BIT_16@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	-48(%rbp), %rcx
	orl	%eax, 4(%rcx)
LBB0_3:
	cmpl	$2, %ebx
	jl	LBB0_10
## %bb.4:
	movq	(%r13), %rax
	movq	8(%rax), %rax
	movq	-48(%rbp), %r11
	movl	%r15d, %edx
	shlq	$2, %rdx
	xorl	%esi, %esi
	movq	_QLCNIC_INTRPT_ADD@GOTPCREL(%rip), %r9
	movq	_QLCNIC_INTRPT_DEL@GOTPCREL(%rip), %r8
	movq	_QLCNIC_INTRPT_MSIX@GOTPCREL(%rip), %r10
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%edi, 8(%r11,%rsi)
	addq	$4, %rsi
	cmpq	%rsi, %rdx
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r9, %rbx
	testl	%r14d, %r14d
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r8, %rbx
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rax,%rsi,4), %ecx
	movl	%ecx, %edi
	shll	$4, %edi
	orl	(%rbx), %edi
	cmpl	(%r10), %ecx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%rax,%rsi,4), %ecx
	shll	$16, %ecx
	orl	%ecx, %edi
	jmp	LBB0_9
LBB0_10:
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_qlcnic_issue_cmd
	testl	%eax, %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	je	LBB0_14
## %bb.11:
	movq	8(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
LBB0_12:
	leaq	-56(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
	movl	-60(%rbp), %eax                 ## 4-byte Reload
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	-56(%rbp), %rax
	movl	4(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_12
## %bb.15:
	leaq	-8(,%rcx,8), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%rax,%r12), %ebx
	movl	%ebx, %edi
	callq	_LSB
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	(%r13), %rax
	movq	8(%r13), %rdi
	movq	8(%rax), %rax
	movl	4(%rax,%r12,2), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
	cmpq	%r12, -72(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_22
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	testl	%r14d, %r14d
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%ebx, %edi
	callq	_MSW
	movq	(%r13), %rcx
	movq	8(%rcx), %rcx
	movl	%eax, 4(%rcx,%r12,2)
	movl	$1, 8(%rcx,%r12,2)
	movq	-56(%rbp), %rax
	movl	12(%rax,%r12), %eax
	movl	%eax, 12(%rcx,%r12,2)
	cmpq	%r12, -72(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_22
	jmp	LBB0_12
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	(%r13), %rax
	movq	8(%rax), %rax
	movl	%r15d, 4(%rax,%r12,2)
	movq	$0, 8(%rax,%r12,2)
	cmpq	%r12, -72(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_12
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	-56(%rbp), %rax
	addq	$8, %r12
	incl	%r15d
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_CMD_CONFIG_INTRPT,4,2   ## @QLCNIC_CMD_CONFIG_INTRPT
	.comm	_BIT_16,4,2                     ## @BIT_16
	.comm	_QLCNIC_INTRPT_ADD,4,2          ## @QLCNIC_INTRPT_ADD
	.comm	_QLCNIC_INTRPT_DEL,4,2          ## @QLCNIC_INTRPT_DEL
	.comm	_QLCNIC_INTRPT_MSIX,4,2         ## @QLCNIC_INTRPT_MSIX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to configure interrupts 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Can't configure interrupt %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_config_intrpt      ; -- Begin function qlcnic_83xx_config_intrpt
	.p2align	2
_qlcnic_83xx_config_intrpt:             ; @qlcnic_83xx_config_intrpt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w22, [x8]
Lloh0:
	adrp	x8, _QLCNIC_CMD_CONFIG_INTRPT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLCNIC_CMD_CONFIG_INTRPT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, sp
	mov	x1, x19
	bl	_qlcnic_alloc_mbx_args
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.1:
	sub	w21, w22, #1
	ldr	x8, [sp, #8]
	str	w21, [x8, #4]
	mov	x0, x19
	bl	_qlcnic_sriov_vf_check
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x19]
	ldr	w8, [x8, #4]
Lloh3:
	adrp	x9, _BIT_16@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BIT_16@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8, lsl #8
	ldr	x9, [sp, #8]
	ldr	w10, [x9, #4]
	orr	w8, w8, w10
	str	w8, [x9, #4]
LBB0_3:
	cmp	w22, #2
	b.lt	LBB0_8
; %bb.4:
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
	ldr	x8, [sp, #8]
	add	x8, x8, #8
	add	x9, x9, #4
Lloh6:
	adrp	x10, _QLCNIC_INTRPT_ADD@GOTPAGE
Lloh7:
	ldr	x10, [x10, _QLCNIC_INTRPT_ADD@GOTPAGEOFF]
Lloh8:
	adrp	x11, _QLCNIC_INTRPT_DEL@GOTPAGE
Lloh9:
	ldr	x11, [x11, _QLCNIC_INTRPT_DEL@GOTPAGEOFF]
Lloh10:
	adrp	x12, _QLCNIC_INTRPT_MSIX@GOTPAGE
Lloh11:
	ldr	x12, [x12, _QLCNIC_INTRPT_MSIX@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	w13, [x8], #4
	add	x9, x9, #16
	subs	x21, x21, #1
	b.eq	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w20, #0
	csel	x13, x11, x10, eq
	ldr	w13, [x13]
	ldur	w14, [x9, #-4]
	orr	w13, w13, w14, lsl #4
	ldr	w15, [x12]
	cmp	w14, w15
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w14, [x9]
	orr	w13, w13, w14, lsl #16
	b	LBB0_5
LBB0_8:
	mov	x1, sp
	mov	x0, x19
	bl	_qlcnic_issue_cmd
	mov	x21, x0
	cbz	w0, LBB0_12
; %bb.9:
	ldr	x0, [x19, #8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_err
LBB0_10:
	mov	x0, sp
	bl	_qlcnic_free_mbx_args
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
	ldr	x8, [sp]
	ldr	w9, [x8, #4]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.13:
	mov	x24, #0
	mov	w25, #0
	mov	x26, #0
	lsl	x9, x9, #4
	sub	x27, x9, #16
	mov	w28, #1
Lloh14:
	adrp	x22, l_.str.1@PAGE
Lloh15:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x26
	ldr	w23, [x8, #8]
	mov	x0, x23
	bl	_LSB
	cbz	x0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldp	x8, x0, [x19]
	ldr	x8, [x8, #8]
	add	x8, x8, x24
	ldr	w2, [x8, #4]
	mov	x1, x22
	bl	_dev_info
	cmp	x27, x24
	b.ne	LBB0_19
	b	LBB0_10
LBB0_16:                                ;   in Loop: Header=BB0_14 Depth=1
	cbz	w20, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x23
	bl	_MSW
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	add	x8, x8, x24
	stp	w0, w28, [x8, #4]
	ldr	x9, [sp]
	add	x9, x9, x26
	ldr	w9, [x9, #12]
	str	w9, [x8, #12]
	cmp	x27, x24
	b.ne	LBB0_19
	b	LBB0_10
LBB0_18:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	add	x8, x8, x24
	str	xzr, [x8, #8]
	str	w25, [x8, #4]
	cmp	x27, x24
	b.eq	LBB0_10
LBB0_19:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [sp]
	add	x26, x26, #8
	add	w25, w25, #1
	add	x24, x24, #16
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_CMD_CONFIG_INTRPT,4,2   ; @QLCNIC_CMD_CONFIG_INTRPT
	.comm	_BIT_16,4,2                     ; @BIT_16
	.comm	_QLCNIC_INTRPT_ADD,4,2          ; @QLCNIC_INTRPT_ADD
	.comm	_QLCNIC_INTRPT_DEL,4,2          ; @QLCNIC_INTRPT_DEL
	.comm	_QLCNIC_INTRPT_MSIX,4,2         ; @QLCNIC_INTRPT_MSIX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to configure interrupts 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Can't configure interrupt %d\n"

.subsections_via_symbols
