	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netxen_nic_set_link_ksettings
_netxen_nic_set_link_ksettings:         ## @netxen_nic_set_link_ksettings
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	16(%rax), %rax
	movq	_NETXEN_NIC_GBE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	_NX_FW_CAPABILITY_GBE_LINK_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_1
## %bb.4:
	movl	8(%r15), %r12d
	movl	(%r15), %ecx
	movl	4(%r15), %edx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_nx_fw_cmd_set_gbe_port
	movq	_NX_RCODE_NOT_SUPPORTED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_7:
	movl	%r12d, 12(%rbx)
	movl	4(%r15), %eax
	movl	%eax, 8(%rbx)
	movl	(%r15), %eax
	movl	%eax, 4(%rbx)
	movq	%r14, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_8
## %bb.10:
	movq	(%r14), %rax
	movq	%r14, %rdi
	callq	*8(%rax)
	movq	(%r14), %rax
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*(%rax)                         ## TAILCALL
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_NETXEN_NIC_GBE,8,3             ## @NETXEN_NIC_GBE
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_NX_FW_CAPABILITY_GBE_LINK_CFG,4,2 ## @NX_FW_CAPABILITY_GBE_LINK_CFG
	.comm	_NX_RCODE_NOT_SUPPORTED,4,2     ## @NX_RCODE_NOT_SUPPORTED
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_netxen_nic_set_link_ksettings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netxen_nic_set_link_ksettings
_netxen_nic_set_link_ksettings:         ; @netxen_nic_set_link_ksettings
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_netdev_priv
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _NETXEN_NIC_GBE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NETXEN_NIC_GBE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _NX_FW_CAPABILITY_GBE_LINK_CFG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NX_FW_CAPABILITY_GBE_LINK_CFG@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldp	w2, w22, [x20, #4]
	ldr	w3, [x20]
	mov	x0, x21
	mov	x1, x22
	bl	_nx_fw_cmd_set_gbe_port
Lloh6:
	adrp	x8, _NX_RCODE_NOT_SUPPORTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NX_RCODE_NOT_SUPPORTED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
LBB0_3:
Lloh9:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	cbz	w0, LBB0_8
; %bb.7:
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_4
LBB0_8:
	str	w22, [x21, #12]
	ldr	d0, [x20]
	stur	d0, [x21, #4]
	mov	x0, x19
	bl	_netif_running
	cbz	w0, LBB0_5
; %bb.9:
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
	ldr	x1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	br	x1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_NETXEN_NIC_GBE,8,3             ; @NETXEN_NIC_GBE
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_NX_FW_CAPABILITY_GBE_LINK_CFG,4,2 ; @NX_FW_CAPABILITY_GBE_LINK_CFG
	.comm	_NX_RCODE_NOT_SUPPORTED,4,2     ; @NX_RCODE_NOT_SUPPORTED
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_netxen_nic_set_link_ksettings
.subsections_via_symbols
