	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_get_link_ksettings
_mlx4_en_get_link_ksettings:            ## @mlx4_en_get_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, %r14
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	8(%rbx), %rdi
	movl	16(%rbx), %esi
	callq	_mlx4_en_QUERY_PORT
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_2:
	movq	_DRV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %r8d
	movq	_MLX4_EN_PORT_ANC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	%r8d, %ecx
	movq	_MLX4_EN_PORT_ANE@GOTPCREL(%rip), %rax
	andl	(%rax), %r8d
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rsi
	callq	_en_dbg
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_MLX4_DEV_CAP_FLAG2_ETH_PROT_CTRL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ethtool_get_ptys_link_ksettings
	movl	%eax, %r12d
	testl	%r12d, %r12d
	je	LBB0_7
LBB0_6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ethtool_get_default_link_ksettings
LBB0_7:
	movq	%r15, %rdi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	4(%rbx), %eax
	movl	%eax, 4(%r14)
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_3:
	negl	%r12d
	testl	%r12d, %r12d
	jne	LBB0_6
	jmp	LBB0_7
LBB0_9:
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_DUPLEX_UNKNOWN@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DRV,4,2                        ## @DRV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"query port state.flags ANC(%x) ANE(%x)\n"

	.comm	_MLX4_EN_PORT_ANC,4,2           ## @MLX4_EN_PORT_ANC
	.comm	_MLX4_EN_PORT_ANE,4,2           ## @MLX4_EN_PORT_ANE
	.comm	_MLX4_DEV_CAP_FLAG2_ETH_PROT_CTRL,4,2 ## @MLX4_DEV_CAP_FLAG2_ETH_PROT_CTRL
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_SPEED_UNKNOWN,4,2              ## @SPEED_UNKNOWN
	.comm	_DUPLEX_UNKNOWN,4,2             ## @DUPLEX_UNKNOWN
	.no_dead_strip	_mlx4_en_get_link_ksettings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_en_get_link_ksettings
_mlx4_en_get_link_ksettings:            ; @mlx4_en_get_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	x19, x1
	mov	x21, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	x0, [x0, #8]
	ldr	w1, [x20, #16]
	bl	_mlx4_en_QUERY_PORT
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_2:
Lloh6:
	adrp	x8, _DRV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRV@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w8, [x20]
Lloh9:
	adrp	x9, _MLX4_EN_PORT_ANC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MLX4_EN_PORT_ANC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w3, w9, w8
Lloh12:
	adrp	x9, _MLX4_EN_PORT_ANE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MLX4_EN_PORT_ANE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w4, w9, w8
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x20
	bl	_en_dbg
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _MLX4_DEV_CAP_FLAG2_ETH_PROT_CTRL@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MLX4_DEV_CAP_FLAG2_ETH_PROT_CTRL@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.3:
	mov	x0, x21
	mov	x1, x19
	bl	_ethtool_get_ptys_link_ksettings
	cbz	w0, LBB0_5
LBB0_4:
	mov	x0, x21
	mov	x1, x19
	bl	_ethtool_get_default_link_ksettings
LBB0_5:
	mov	x0, x21
	bl	_netif_carrier_ok
	cbz	x0, LBB0_8
; %bb.6:
	mov	w0, #0
	ldr	w8, [x20, #4]
Lloh20:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh21:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	neg	w0, w22
	cbnz	w0, LBB0_4
	b	LBB0_5
LBB0_8:
Lloh22:
	adrp	x8, _SPEED_UNKNOWN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SPEED_UNKNOWN@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _DUPLEX_UNKNOWN@GOTPAGE
Lloh26:
	ldr	x9, [x9, _DUPLEX_UNKNOWN@GOTPAGEOFF]
LBB0_9:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DRV,4,2                        ; @DRV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"query port state.flags ANC(%x) ANE(%x)\n"

	.comm	_MLX4_EN_PORT_ANC,4,2           ; @MLX4_EN_PORT_ANC
	.comm	_MLX4_EN_PORT_ANE,4,2           ; @MLX4_EN_PORT_ANE
	.comm	_MLX4_DEV_CAP_FLAG2_ETH_PROT_CTRL,4,2 ; @MLX4_DEV_CAP_FLAG2_ETH_PROT_CTRL
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_SPEED_UNKNOWN,4,2              ; @SPEED_UNKNOWN
	.comm	_DUPLEX_UNKNOWN,4,2             ; @DUPLEX_UNKNOWN
	.no_dead_strip	_mlx4_en_get_link_ksettings
.subsections_via_symbols
