	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_set_default_offload_settings ## -- Begin function qlcnic_set_default_offload_settings
	.p2align	4, 0x90
_qlcnic_set_default_offload_settings:   ## @qlcnic_set_default_offload_settings
	.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
	xorl	%eax, %eax
	cmpq	$0, 16(%rdi)
	je	LBB0_1
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %r15
	movq	8(%rdi), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_12
## %bb.2:
	movq	(%r15), %rax
	xorl	%ebx, %ebx
	leaq	-80(%rbp), %r14
	movq	_BIT_0@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	addq	$48, %rbx
	cmpq	(%rcx), %r13
	jae	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 40(%rax,%rbx)
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	(%r15), %rax
	movl	36(%rax,%rbx), %eax
	movl	%eax, -44(%rbp)
	movq	(%r12), %rax
	movq	%rax, -56(%rbp)
	movq	%rax, -72(%rbp)
	movq	%r15, %rdi
	callq	_qlcnic_82xx_check
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %eax
	movl	%eax, -80(%rbp)
	movq	%r15, %rdi
	callq	_QLCNIC_IS_TSO_CAPABLE
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_BIT_2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_BIT_1@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	%eax, -80(%rbp)
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_qlcnic_config_switch_port
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rax
	movl	-48(%rbp), %ecx
	movl	%ecx, 32(%rax,%rbx)
	movq	-56(%rbp), %rcx
	movq	%rcx, 24(%rax,%rbx)
	movl	-60(%rbp), %ecx
	movl	%ecx, 20(%rax,%rbx)
	movl	-64(%rbp), %ecx
	movl	%ecx, 16(%rax,%rbx)
	movq	-72(%rbp), %rcx
	movq	%rcx, 8(%rax,%rbx)
	movl	-80(%rbp), %ecx
	movl	%ecx, (%rax,%rbx)
	movq	8(%r15), %rcx
	jmp	LBB0_10
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_8:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_BIT_0,8,3                      ## @BIT_0
	.comm	_BIT_1,4,2                      ## @BIT_1
	.comm	_BIT_2,4,2                      ## @BIT_2
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_set_default_offload_settings ; -- Begin function qlcnic_set_default_offload_settings
	.p2align	2
_qlcnic_set_default_offload_settings:   ; @qlcnic_set_default_offload_settings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	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
	add	sp, sp, #112
	ret
LBB0_3:
	mov	x19, x0
	ldr	x9, [x0, #8]
	ldr	x8, [x9]
	cbz	x8, LBB0_1
; %bb.4:
	mov	x20, #0
	mov	x21, #0
	ldr	x8, [x19]
Lloh0:
	adrp	x22, _BIT_0@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BIT_0@GOTPAGEOFF]
Lloh2:
	adrp	x23, _BIT_1@GOTPAGE
Lloh3:
	ldr	x23, [x23, _BIT_1@GOTPAGEOFF]
Lloh4:
	adrp	x24, _BIT_2@GOTPAGE
Lloh5:
	ldr	x24, [x24, _BIT_2@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	ldr	x10, [x9]
	add	x20, x20, #48
	cmp	x21, x10
	b.hs	LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x10, x8, x20
	ldr	w10, [x10, #40]
	cbz	w10, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	ldr	x8, [x19]
	add	x8, x8, x20
	ldr	w8, [x8, #36]
	str	w8, [sp, #44]
	ldr	x8, [x22]
	str	x8, [sp, #32]
	str	x8, [sp, #16]
	mov	x0, x19
	bl	_qlcnic_82xx_check
	cbz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22]
	str	w8, [sp, #8]
	mov	x0, x19
	bl	_QLCNIC_IS_TSO_CAPABLE
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [sp, #8]
	orr	w8, w8, w9
	str	w8, [sp, #8]
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_qlcnic_config_switch_port
	cbnz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19]
	ldr	w9, [sp, #40]
	add	x10, x8, x20
	str	w9, [x10, #32]
	ldr	x9, [sp, #32]
	str	x9, [x10, #24]
	ldr	d0, [sp, #24]
	str	d0, [x10, #16]
	ldr	x9, [sp, #16]
	str	x9, [x10, #8]
	ldr	w9, [sp, #8]
	str	w9, [x10]
	ldr	x9, [x19, #8]
	b	LBB0_5
LBB0_12:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_2
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BIT_0,8,3                      ; @BIT_0
	.comm	_BIT_1,4,2                      ; @BIT_1
	.comm	_BIT_2,4,2                      ; @BIT_2
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
