	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxgb_open
_cxgb_open:                             ## @cxgb_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, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movq	8(%rax), %rbx
	movl	(%rbx), %r12d
	movq	_PORT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	testl	%r12d, %r12d
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_cxgb_up
	testl	%eax, %eax
	js	LBB0_10
LBB0_2:
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	movq	%rbx, %rdi
	callq	_is_offload
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_ofld_disable@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	callq	_offload_open
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_pr_warn
LBB0_6:
	movl	4(%r14), %esi
	movq	%r15, %rdi
	callq	_netif_set_real_num_tx_queues
	movl	4(%r14), %esi
	movq	%r15, %rdi
	callq	_netif_set_real_num_rx_queues
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	%r15, %rdi
	callq	_link_start
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_t3_port_intr_enable
	movq	%r15, %rdi
	callq	_netif_tx_start_all_queues
	testl	%r12d, %r13d
	jne	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_schedule_chk_task
LBB0_9:
	addq	$4, %rbx
	movq	_OFFLOAD_PORT_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_cxgb3_event_notify
	xorl	%eax, %eax
LBB0_10:
	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	_ofld_disable,4,2               ## @ofld_disable
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not initialize offload capabilities\n"

	.comm	_OFFLOAD_PORT_UP,4,2            ## @OFFLOAD_PORT_UP
	.no_dead_strip	_cxgb_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxgb_open
_cxgb_open:                             ; @cxgb_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	x21, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x20, [x0, #8]
	ldr	w22, [x20]
Lloh0:
	adrp	x8, _PORT_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PORT_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	cbnz	w22, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_cxgb_up
	tbnz	w0, #31, LBB0_9
LBB0_2:
	ldr	w0, [x19]
	mov	x1, x20
	bl	_set_bit
	mov	x0, x20
	bl	_is_offload
Lloh3:
	adrp	x8, _ofld_disable@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ofld_disable@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x0, #0
	ccmp	w8, #0, #0, ne
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_offload_open
	cbz	w0, LBB0_5
; %bb.4:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
LBB0_5:
	ldr	w1, [x19, #4]
	mov	x0, x21
	bl	_netif_set_real_num_tx_queues
	ldr	w1, [x19, #4]
	mov	x0, x21
	bl	_netif_set_real_num_rx_queues
	cbnz	w0, LBB0_9
; %bb.6:
	and	w22, w23, w22
	mov	x0, x21
	bl	_link_start
	ldr	w1, [x19]
	mov	x0, x20
	bl	_t3_port_intr_enable
	mov	x0, x21
	bl	_netif_tx_start_all_queues
	cbnz	w22, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_schedule_chk_task
LBB0_8:
	add	x0, x20, #4
Lloh8:
	adrp	x8, _OFFLOAD_PORT_UP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OFFLOAD_PORT_UP@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x19]
	bl	_cxgb3_event_notify
	mov	w0, #0
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_MASK,4,2                  ; @PORT_MASK
	.comm	_ofld_disable,4,2               ; @ofld_disable
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not initialize offload capabilities\n"

	.comm	_OFFLOAD_PORT_UP,4,2            ; @OFFLOAD_PORT_UP
	.no_dead_strip	_cxgb_open
.subsections_via_symbols
