	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function offload_open
_offload_open:                          ## @offload_open
	.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, %r12
	callq	_netdev_priv
	movq	(%rax), %rbx
	movq	%r12, %rdi
	callq	_dev2t3cdev
	movq	%rax, %r15
	movl	(%rbx), %r13d
	movq	_PORT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_OFFLOAD_DEVMAP_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	xorl	%ecx, %ecx
	testq	%rax, %rax
	jne	LBB0_11
## %bb.1:
	testl	%r13d, %r14d
	jne	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_cxgb_up
	testl	%eax, %eax
	js	LBB0_3
LBB0_5:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_t3_tp_set_offload_mode
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movq	%rbx, %rdi
	callq	_cxgb3_offload_activate
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.6:
	movq	%rbx, %rdi
	callq	_init_port_mtus
	movl	32(%rbx), %esi
	movl	24(%rbx), %ecx
	movl	28(%rbx), %edx
	movl	$65535, %r8d                    ## imm = 0xFFFF
	cmpq	$0, 16(%rbx)
	jne	LBB0_8
## %bb.7:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %r8d
LBB0_8:
	movq	%rbx, %rdi
	callq	_t3_load_mtus
	movq	%rbx, %rdi
	callq	_init_smt
	movq	(%r15), %rdi
	addq	$4, %rdi
	movq	_offload_attr_group@GOTPCREL(%rip), %rsi
	callq	_sysfs_create_group
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
LBB0_10:
	movq	%r15, %rdi
	callq	_cxgb3_add_clients
	xorl	%ecx, %ecx
	jmp	LBB0_11
LBB0_3:
	movl	%eax, %r13d
LBB0_4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_t3_tp_set_offload_mode
	movq	_OFFLOAD_DEVMAP_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	%r15, %rdi
	callq	_cxgb3_set_dummy_ops
	movl	%r13d, %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	_PORT_MASK,4,2                  ## @PORT_MASK
	.comm	_OFFLOAD_DEVMAP_BIT,4,2         ## @OFFLOAD_DEVMAP_BIT
	.comm	_offload_attr_group,4,2         ## @offload_attr_group
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot create sysfs group\n"

	.no_dead_strip	_offload_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function offload_open
_offload_open:                          ; @offload_open
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	bl	_netdev_priv
	ldr	x21, [x0]
	mov	x0, x20
	bl	_dev2t3cdev
	mov	x19, x0
	ldr	w22, [x21]
Lloh0:
	adrp	x8, _PORT_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PORT_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
Lloh3:
	adrp	x23, _OFFLOAD_DEVMAP_BIT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _OFFLOAD_DEVMAP_BIT@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x21
	bl	_test_and_set_bit
	cbz	x0, LBB0_2
LBB0_1:
	mov	w22, #0
	b	LBB0_9
LBB0_2:
	tst	w24, w22
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_cxgb_up
	tbnz	w0, #31, LBB0_7
LBB0_4:
	mov	x0, x21
	mov	w1, #1
	bl	_t3_tp_set_offload_mode
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	str	x8, [x19]
	mov	x0, x21
	bl	_cxgb3_offload_activate
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.5:
	mov	x0, x21
	bl	_init_port_mtus
	ldp	w2, w1, [x21, #28]
	ldr	w3, [x21, #24]
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_10
; %bb.6:
	mov	w4, #65535
	b	LBB0_11
LBB0_7:
	mov	x22, x0
LBB0_8:
	mov	x0, x21
	mov	w1, #0
	bl	_t3_tp_set_offload_mode
	ldr	w0, [x23]
	mov	x1, x21
	bl	_clear_bit
	mov	x0, x19
	bl	_cxgb3_set_dummy_ops
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	w4, [x8]
LBB0_11:
	mov	x0, x21
	bl	_t3_load_mtus
	mov	x0, x21
	bl	_init_smt
	ldr	x8, [x19]
	add	x0, x8, #4
Lloh5:
	adrp	x1, _offload_attr_group@GOTPAGE
Lloh6:
	ldr	x1, [x1, _offload_attr_group@GOTPAGEOFF]
	bl	_sysfs_create_group
	cbz	x0, LBB0_13
; %bb.12:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
LBB0_13:
	mov	x0, x19
	bl	_cxgb3_add_clients
	b	LBB0_1
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_MASK,4,2                  ; @PORT_MASK
	.comm	_OFFLOAD_DEVMAP_BIT,4,2         ; @OFFLOAD_DEVMAP_BIT
	.comm	_offload_attr_group,4,2         ; @offload_attr_group
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot create sysfs group\n"

	.no_dead_strip	_offload_open
.subsections_via_symbols
