	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_get_settings
_mlx4_en_get_settings:                  ## @mlx4_en_get_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	%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	_AUTONEG_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	_SUPPORTED_10000baseT_Full@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_ADVERTISED_10000baseT_Full@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	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_12
LBB0_2:
	movl	(%rbx), %r12d
	movq	%r15, %rdi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	callq	_ethtool_cmd_speed_set
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_5
LBB0_4:
	movl	$-1, %ebx
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_ethtool_cmd_speed_set
LBB0_5:
	movl	%ebx, (%r14)
	leal	-1(%r12), %eax
	cmpl	$11, %eax
	ja	LBB0_8
## %bb.6:
	movq	_PORT_FIBRE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_XCVR_EXTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	_SUPPORTED_FIBRE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r14)
	movq	_ADVERTISED_FIBRE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_8:
	testl	$-129, %r12d
	je	LBB0_9
## %bb.10:
	movq	$-1, 4(%r14)
	jmp	LBB0_11
LBB0_9:
	movq	_PORT_TP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_XCVR_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	_SUPPORTED_TP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r14)
	movq	_ADVERTISED_TP@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	orl	%eax, 12(%r14)
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTONEG_DISABLE,4,2            ## @AUTONEG_DISABLE
	.comm	_SUPPORTED_10000baseT_Full,4,2  ## @SUPPORTED_10000baseT_Full
	.comm	_ADVERTISED_10000baseT_Full,4,2 ## @ADVERTISED_10000baseT_Full
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_PORT_FIBRE,4,2                 ## @PORT_FIBRE
	.comm	_XCVR_EXTERNAL,4,2              ## @XCVR_EXTERNAL
	.comm	_SUPPORTED_FIBRE,4,2            ## @SUPPORTED_FIBRE
	.comm	_ADVERTISED_FIBRE,4,2           ## @ADVERTISED_FIBRE
	.comm	_PORT_TP,4,2                    ## @PORT_TP
	.comm	_XCVR_INTERNAL,4,2              ## @XCVR_INTERNAL
	.comm	_SUPPORTED_TP,4,2               ## @SUPPORTED_TP
	.comm	_ADVERTISED_TP,4,2              ## @ADVERTISED_TP
	.no_dead_strip	_mlx4_en_get_settings
.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_settings
_mlx4_en_get_settings:                  ; @mlx4_en_get_settings
	.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, _AUTONEG_DISABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #20]
Lloh3:
	adrp	x8, _SUPPORTED_10000baseT_Full@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SUPPORTED_10000baseT_Full@GOTPAGEOFF]
Lloh5:
	adrp	x9, _ADVERTISED_10000baseT_Full@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ADVERTISED_10000baseT_Full@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #12]
	ldr	w0, [x0, #12]
	ldr	w1, [x20, #8]
	bl	_mlx4_en_QUERY_PORT
	cbz	x0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_2:
	ldr	w22, [x20]
	mov	x0, x21
	bl	_netif_carrier_ok
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_ethtool_cmd_speed_set
Lloh12:
	adrp	x8, _DUPLEX_FULL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DUPLEX_FULL@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	b	LBB0_5
LBB0_4:
	mov	w20, #-1
	mov	x0, x19
	mov	w1, #-1
	bl	_ethtool_cmd_speed_set
LBB0_5:
	str	w20, [x19]
	sub	w8, w22, #1
	cmp	w8, #11
	b.hi	LBB0_7
; %bb.6:
	mov	w0, #0
Lloh15:
	adrp	x8, _PORT_FIBRE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PORT_FIBRE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _XCVR_EXTERNAL@GOTPAGE
Lloh19:
	ldr	x9, [x9, _XCVR_EXTERNAL@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #4]
Lloh21:
	adrp	x8, _SUPPORTED_FIBRE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SUPPORTED_FIBRE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldp	w10, w9, [x19, #12]
	orr	w8, w9, w8
Lloh24:
	adrp	x9, _ADVERTISED_FIBRE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ADVERTISED_FIBRE@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
	tst	w22, #0xffffff7f
	b.eq	LBB0_9
; %bb.8:
	mov	w0, #0
	movi.2d	v0, #0xffffffffffffffff
	stur	d0, [x19, #4]
	b	LBB0_11
LBB0_9:
	mov	w0, #0
Lloh26:
	adrp	x8, _PORT_TP@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PORT_TP@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _XCVR_INTERNAL@GOTPAGE
Lloh30:
	ldr	x9, [x9, _XCVR_INTERNAL@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #4]
Lloh32:
	adrp	x8, _SUPPORTED_TP@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SUPPORTED_TP@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	ldp	w10, w9, [x19, #12]
	orr	w8, w9, w8
Lloh35:
	adrp	x9, _ADVERTISED_TP@GOTPAGE
Lloh36:
	ldr	x9, [x9, _ADVERTISED_TP@GOTPAGEOFF]
LBB0_10:
	ldr	w9, [x9]
	orr	w9, w10, w9
	stp	w9, w8, [x19, #12]
LBB0_11:
	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	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTONEG_DISABLE,4,2            ; @AUTONEG_DISABLE
	.comm	_SUPPORTED_10000baseT_Full,4,2  ; @SUPPORTED_10000baseT_Full
	.comm	_ADVERTISED_10000baseT_Full,4,2 ; @ADVERTISED_10000baseT_Full
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_PORT_FIBRE,4,2                 ; @PORT_FIBRE
	.comm	_XCVR_EXTERNAL,4,2              ; @XCVR_EXTERNAL
	.comm	_SUPPORTED_FIBRE,4,2            ; @SUPPORTED_FIBRE
	.comm	_ADVERTISED_FIBRE,4,2           ; @ADVERTISED_FIBRE
	.comm	_PORT_TP,4,2                    ; @PORT_TP
	.comm	_XCVR_INTERNAL,4,2              ; @XCVR_INTERNAL
	.comm	_SUPPORTED_TP,4,2               ; @SUPPORTED_TP
	.comm	_ADVERTISED_TP,4,2              ; @ADVERTISED_TP
	.no_dead_strip	_mlx4_en_get_settings
.subsections_via_symbols
