	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ehea_get_settings
_ehea_get_settings:                     ## @ehea_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, %r12
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_ehea_sense_port_attr
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_22
## %bb.1:
	movq	%rbx, %rdi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	(%r15), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_4
## %bb.5:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_2:
	movl	$-1, %eax
	movl	$-1, %esi
	jmp	LBB0_15
LBB0_4:
	movl	$-1, %esi
	cmpl	$1, 4(%r15)
	je	LBB0_13
LBB0_12:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_6:
	movq	_SPEED_10@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_SPEED_10000@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_7:
	movq	_SPEED_100@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %esi
	cmpl	$1, 4(%r15)
	jne	LBB0_12
LBB0_13:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
LBB0_15:
	movl	%eax, (%r12)
	movq	%r12, %rdi
	callq	_ethtool_cmd_speed_set
	movq	8(%r12), %rax
	movq	_SPEED_10000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.16:
	movq	_SUPPORTED_10000baseT_Full@GOTPCREL(%rip), %rcx
	movq	_SUPPORTED_FIBRE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_ADVERTISED_FIBRE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_PORT_FIBRE@GOTPCREL(%rip), %rdx
	movq	_ADVERTISED_10000baseT_Full@GOTPCREL(%rip), %rsi
	jmp	LBB0_18
LBB0_17:
	movq	_SUPPORTED_1000baseT_Full@GOTPCREL(%rip), %rcx
	movq	_SUPPORTED_100baseT_Full@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_SUPPORTED_100baseT_Half@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_SUPPORTED_10baseT_Full@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_SUPPORTED_10baseT_Half@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_SUPPORTED_Autoneg@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_SUPPORTED_TP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_ADVERTISED_1000baseT_Full@GOTPCREL(%rip), %rdx
	movq	_ADVERTISED_Autoneg@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	_PORT_TP@GOTPCREL(%rip), %rdx
	movq	_ADVERTISED_TP@GOTPCREL(%rip), %rsi
LBB0_18:
	orl	(%rsi), %ecx
	movl	(%rdx), %edx
	movl	%eax, 16(%r12)
	movl	%ecx, 20(%r12)
	movl	%edx, 28(%r12)
	cmpl	$1, 8(%r15)
	jne	LBB0_19
## %bb.20:
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_19:
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
LBB0_22:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_SPEED_10,4,2                   ## @SPEED_10
	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
	.comm	_SPEED_10000,8,3                ## @SPEED_10000
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ## @DUPLEX_HALF
	.comm	_SUPPORTED_10000baseT_Full,4,2  ## @SUPPORTED_10000baseT_Full
	.comm	_SUPPORTED_FIBRE,4,2            ## @SUPPORTED_FIBRE
	.comm	_ADVERTISED_10000baseT_Full,4,2 ## @ADVERTISED_10000baseT_Full
	.comm	_ADVERTISED_FIBRE,4,2           ## @ADVERTISED_FIBRE
	.comm	_PORT_FIBRE,4,2                 ## @PORT_FIBRE
	.comm	_SUPPORTED_1000baseT_Full,4,2   ## @SUPPORTED_1000baseT_Full
	.comm	_SUPPORTED_100baseT_Full,4,2    ## @SUPPORTED_100baseT_Full
	.comm	_SUPPORTED_100baseT_Half,4,2    ## @SUPPORTED_100baseT_Half
	.comm	_SUPPORTED_10baseT_Full,4,2     ## @SUPPORTED_10baseT_Full
	.comm	_SUPPORTED_10baseT_Half,4,2     ## @SUPPORTED_10baseT_Half
	.comm	_SUPPORTED_Autoneg,4,2          ## @SUPPORTED_Autoneg
	.comm	_SUPPORTED_TP,4,2               ## @SUPPORTED_TP
	.comm	_ADVERTISED_1000baseT_Full,4,2  ## @ADVERTISED_1000baseT_Full
	.comm	_ADVERTISED_Autoneg,4,2         ## @ADVERTISED_Autoneg
	.comm	_ADVERTISED_TP,4,2              ## @ADVERTISED_TP
	.comm	_PORT_TP,4,2                    ## @PORT_TP
	.comm	_AUTONEG_ENABLE,4,2             ## @AUTONEG_ENABLE
	.comm	_AUTONEG_DISABLE,4,2            ## @AUTONEG_DISABLE
	.no_dead_strip	_ehea_get_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ehea_get_settings
_ehea_get_settings:                     ; @ehea_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	x22, x0
	bl	_netdev_priv
	mov	x21, x0
	bl	_ehea_sense_port_attr
	mov	x20, x0
	cbnz	w0, LBB0_16
; %bb.1:
	mov	x0, x22
	bl	_netif_carrier_ok
Lloh0:
	adrp	x22, _SPEED_10000@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SPEED_10000@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w8, [x21]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_6
; %bb.3:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
Lloh4:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
	mov	w8, #-1
	mov	w1, #-1
	b	LBB0_12
LBB0_6:
	mov	w1, #-1
	b	LBB0_11
LBB0_7:
Lloh6:
	adrp	x8, _SPEED_10@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SPEED_10@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	ldr	w1, [x22]
	b	LBB0_11
LBB0_9:
Lloh8:
	adrp	x8, _SPEED_100@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SPEED_100@GOTPAGEOFF]
LBB0_10:
	ldr	w1, [x8]
LBB0_11:
Lloh10:
	adrp	x8, _DUPLEX_FULL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DUPLEX_FULL@GOTPAGEOFF]
	ldr	w9, [x21, #4]
Lloh12:
	adrp	x10, _DUPLEX_HALF@GOTPAGE
Lloh13:
	ldr	x10, [x10, _DUPLEX_HALF@GOTPAGEOFF]
	cmp	w9, #1
	csel	x8, x8, x10, eq
	ldr	w8, [x8]
LBB0_12:
	str	w8, [x19]
	mov	x0, x19
	bl	_ethtool_cmd_speed_set
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
Lloh14:
	adrp	x8, _SUPPORTED_10000baseT_Full@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SUPPORTED_10000baseT_Full@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _SUPPORTED_FIBRE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SUPPORTED_FIBRE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _ADVERTISED_FIBRE@GOTPAGE
Lloh21:
	ldr	x10, [x10, _ADVERTISED_FIBRE@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh22:
	ldr	w9, [x10]
Lloh23:
	adrp	x10, _PORT_FIBRE@GOTPAGE
Lloh24:
	ldr	x10, [x10, _PORT_FIBRE@GOTPAGEOFF]
Lloh25:
	adrp	x11, _ADVERTISED_10000baseT_Full@GOTPAGE
Lloh26:
	ldr	x11, [x11, _ADVERTISED_10000baseT_Full@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh27:
	adrp	x8, _SUPPORTED_1000baseT_Full@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SUPPORTED_1000baseT_Full@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _SUPPORTED_100baseT_Full@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SUPPORTED_100baseT_Full@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
Lloh33:
	adrp	x10, _SUPPORTED_100baseT_Half@GOTPAGE
Lloh34:
	ldr	x10, [x10, _SUPPORTED_100baseT_Half@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh35:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh36:
	adrp	x9, _SUPPORTED_10baseT_Full@GOTPAGE
Lloh37:
	ldr	x9, [x9, _SUPPORTED_10baseT_Full@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh39:
	adrp	x9, _SUPPORTED_10baseT_Half@GOTPAGE
Lloh40:
	ldr	x9, [x9, _SUPPORTED_10baseT_Half@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
Lloh42:
	adrp	x10, _SUPPORTED_Autoneg@GOTPAGE
Lloh43:
	ldr	x10, [x10, _SUPPORTED_Autoneg@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh44:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh45:
	adrp	x9, _SUPPORTED_TP@GOTPAGE
Lloh46:
	ldr	x9, [x9, _SUPPORTED_TP@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh48:
	adrp	x9, _ADVERTISED_1000baseT_Full@GOTPAGE
Lloh49:
	ldr	x9, [x9, _ADVERTISED_1000baseT_Full@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
Lloh51:
	adrp	x10, _ADVERTISED_Autoneg@GOTPAGE
Lloh52:
	ldr	x10, [x10, _ADVERTISED_Autoneg@GOTPAGEOFF]
Lloh53:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh54:
	adrp	x10, _PORT_TP@GOTPAGE
Lloh55:
	ldr	x10, [x10, _PORT_TP@GOTPAGEOFF]
Lloh56:
	adrp	x11, _ADVERTISED_TP@GOTPAGE
Lloh57:
	ldr	x11, [x11, _ADVERTISED_TP@GOTPAGEOFF]
LBB0_15:
	ldr	w11, [x11]
	orr	w9, w9, w11
	ldr	w10, [x10]
	stp	w8, w9, [x19, #16]
	str	w10, [x19, #28]
	ldr	w8, [x21, #8]
Lloh58:
	adrp	x9, _AUTONEG_ENABLE@GOTPAGE
Lloh59:
	ldr	x9, [x9, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh60:
	adrp	x10, _AUTONEG_DISABLE@GOTPAGE
Lloh61:
	ldr	x10, [x10, _AUTONEG_DISABLE@GOTPAGEOFF]
	cmp	w8, #1
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x19, #24]
LBB0_16:
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh58, Lloh59
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
                                        ; -- End function
	.comm	_SPEED_10,4,2                   ; @SPEED_10
	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
	.comm	_SPEED_10000,8,3                ; @SPEED_10000
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ; @DUPLEX_HALF
	.comm	_SUPPORTED_10000baseT_Full,4,2  ; @SUPPORTED_10000baseT_Full
	.comm	_SUPPORTED_FIBRE,4,2            ; @SUPPORTED_FIBRE
	.comm	_ADVERTISED_10000baseT_Full,4,2 ; @ADVERTISED_10000baseT_Full
	.comm	_ADVERTISED_FIBRE,4,2           ; @ADVERTISED_FIBRE
	.comm	_PORT_FIBRE,4,2                 ; @PORT_FIBRE
	.comm	_SUPPORTED_1000baseT_Full,4,2   ; @SUPPORTED_1000baseT_Full
	.comm	_SUPPORTED_100baseT_Full,4,2    ; @SUPPORTED_100baseT_Full
	.comm	_SUPPORTED_100baseT_Half,4,2    ; @SUPPORTED_100baseT_Half
	.comm	_SUPPORTED_10baseT_Full,4,2     ; @SUPPORTED_10baseT_Full
	.comm	_SUPPORTED_10baseT_Half,4,2     ; @SUPPORTED_10baseT_Half
	.comm	_SUPPORTED_Autoneg,4,2          ; @SUPPORTED_Autoneg
	.comm	_SUPPORTED_TP,4,2               ; @SUPPORTED_TP
	.comm	_ADVERTISED_1000baseT_Full,4,2  ; @ADVERTISED_1000baseT_Full
	.comm	_ADVERTISED_Autoneg,4,2         ; @ADVERTISED_Autoneg
	.comm	_ADVERTISED_TP,4,2              ; @ADVERTISED_TP
	.comm	_PORT_TP,4,2                    ; @PORT_TP
	.comm	_AUTONEG_ENABLE,4,2             ; @AUTONEG_ENABLE
	.comm	_AUTONEG_DISABLE,4,2            ; @AUTONEG_DISABLE
	.no_dead_strip	_ehea_get_settings
.subsections_via_symbols
