	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl1_get_settings
_atl1_get_settings:                     ## @atl1_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_netdev_priv
	movq	_SUPPORTED_10baseT_Half@GOTPCREL(%rip), %rcx
	movq	_SUPPORTED_10baseT_Full@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_SUPPORTED_100baseT_Half@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_SUPPORTED_100baseT_Full@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_SUPPORTED_1000baseT_Full@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	%rax, %r14
	movq	_SUPPORTED_Autoneg@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_SUPPORTED_TP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, (%rbx)
	movq	_ADVERTISED_TP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rbx)
	movq	8(%rax), %rdx
	movq	_MEDIA_TYPE_AUTO_SENSOR@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movq	_MEDIA_TYPE_1000M_FULL@GOTPCREL(%rip), %r12
	cmpq	%rsi, %rdx
	je	LBB0_2
## %bb.1:
	cmpq	(%r12), %rdx
	jne	LBB0_6
LBB0_2:
	movq	_ADVERTISED_Autoneg@GOTPCREL(%rip), %rdi
	orl	(%rdi), %ecx
	cmpq	%rsi, %rdx
	jne	LBB0_4
## %bb.3:
	movq	_ADVERTISED_10baseT_Half@GOTPCREL(%rip), %rdx
	movq	_ADVERTISED_10baseT_Full@GOTPCREL(%rip), %rsi
	movq	_ADVERTISED_100baseT_Half@GOTPCREL(%rip), %rdi
	movq	_ADVERTISED_100baseT_Full@GOTPCREL(%rip), %r8
	movq	_ADVERTISED_1000baseT_Full@GOTPCREL(%rip), %r9
	orl	(%rdx), %ecx
	orl	(%rsi), %ecx
	orl	(%rdi), %ecx
	orl	(%r8), %ecx
	orl	(%r9), %ecx
	jmp	LBB0_5
LBB0_4:
	movq	_ADVERTISED_1000baseT_Full@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
LBB0_5:
	movl	%ecx, 4(%rbx)
LBB0_6:
	addq	$8, %r14
	movq	_PORT_TP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rbx)
	movq	$0, 24(%rbx)
	movq	_XCVR_INTERNAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rbx)
	movl	(%rax), %edi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	leaq	-48(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	callq	_atl1_get_speed_and_duplex
	movl	-48(%rbp), %eax
	movl	%eax, 8(%rbx)
	movq	-40(%rbp), %rax
	movq	_FULL_DUPLEX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.9:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_11:
	movq	$-1, 8(%rbx)
	jmp	LBB0_12
LBB0_8:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
LBB0_12:
	movq	(%r14), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	movq	%rcx, %rdx
	cmpq	(%r12), %rax
	je	LBB0_14
## %bb.13:
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rdx
LBB0_14:
	cmpq	(%r15), %rax
	cmoveq	%rcx, %rdx
	movl	(%rdx), %eax
	movl	%eax, 16(%rbx)
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUPPORTED_10baseT_Half,4,2     ## @SUPPORTED_10baseT_Half
	.comm	_SUPPORTED_10baseT_Full,4,2     ## @SUPPORTED_10baseT_Full
	.comm	_SUPPORTED_100baseT_Half,4,2    ## @SUPPORTED_100baseT_Half
	.comm	_SUPPORTED_100baseT_Full,4,2    ## @SUPPORTED_100baseT_Full
	.comm	_SUPPORTED_1000baseT_Full,4,2   ## @SUPPORTED_1000baseT_Full
	.comm	_SUPPORTED_Autoneg,4,2          ## @SUPPORTED_Autoneg
	.comm	_SUPPORTED_TP,4,2               ## @SUPPORTED_TP
	.comm	_ADVERTISED_TP,4,2              ## @ADVERTISED_TP
	.comm	_MEDIA_TYPE_AUTO_SENSOR,8,3     ## @MEDIA_TYPE_AUTO_SENSOR
	.comm	_MEDIA_TYPE_1000M_FULL,8,3      ## @MEDIA_TYPE_1000M_FULL
	.comm	_ADVERTISED_Autoneg,4,2         ## @ADVERTISED_Autoneg
	.comm	_ADVERTISED_10baseT_Half,4,2    ## @ADVERTISED_10baseT_Half
	.comm	_ADVERTISED_10baseT_Full,4,2    ## @ADVERTISED_10baseT_Full
	.comm	_ADVERTISED_100baseT_Half,4,2   ## @ADVERTISED_100baseT_Half
	.comm	_ADVERTISED_100baseT_Full,4,2   ## @ADVERTISED_100baseT_Full
	.comm	_ADVERTISED_1000baseT_Full,4,2  ## @ADVERTISED_1000baseT_Full
	.comm	_PORT_TP,4,2                    ## @PORT_TP
	.comm	_XCVR_INTERNAL,4,2              ## @XCVR_INTERNAL
	.comm	_FULL_DUPLEX,8,3                ## @FULL_DUPLEX
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ## @DUPLEX_HALF
	.comm	_AUTONEG_ENABLE,4,2             ## @AUTONEG_ENABLE
	.comm	_AUTONEG_DISABLE,4,2            ## @AUTONEG_DISABLE
	.no_dead_strip	_atl1_get_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atl1_get_settings
_atl1_get_settings:                     ; @atl1_get_settings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x20, #8]!
Lloh0:
	adrp	x9, _SUPPORTED_10baseT_Half@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SUPPORTED_10baseT_Half@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _SUPPORTED_10baseT_Full@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SUPPORTED_10baseT_Full@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _SUPPORTED_100baseT_Half@GOTPAGE
Lloh7:
	ldr	x11, [x11, _SUPPORTED_100baseT_Half@GOTPAGEOFF]
	orr	w9, w10, w9
Lloh8:
	ldr	w10, [x11]
	orr	w9, w9, w10
Lloh9:
	adrp	x10, _SUPPORTED_100baseT_Full@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SUPPORTED_100baseT_Full@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh12:
	adrp	x10, _SUPPORTED_1000baseT_Full@GOTPAGE
Lloh13:
	ldr	x10, [x10, _SUPPORTED_1000baseT_Full@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
Lloh15:
	adrp	x11, _SUPPORTED_Autoneg@GOTPAGE
Lloh16:
	ldr	x11, [x11, _SUPPORTED_Autoneg@GOTPAGEOFF]
	orr	w9, w9, w10
Lloh17:
	ldr	w10, [x11]
	orr	w9, w9, w10
Lloh18:
	adrp	x10, _SUPPORTED_TP@GOTPAGE
Lloh19:
	ldr	x10, [x10, _SUPPORTED_TP@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x19]
Lloh21:
	adrp	x9, _ADVERTISED_TP@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ADVERTISED_TP@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	str	w9, [x19, #4]
Lloh24:
	adrp	x21, _MEDIA_TYPE_AUTO_SENSOR@GOTPAGE
Lloh25:
	ldr	x21, [x21, _MEDIA_TYPE_AUTO_SENSOR@GOTPAGEOFF]
	ldr	x10, [x21]
Lloh26:
	adrp	x22, _MEDIA_TYPE_1000M_FULL@GOTPAGE
Lloh27:
	ldr	x22, [x22, _MEDIA_TYPE_1000M_FULL@GOTPAGEOFF]
	cmp	x8, x10
	b.eq	LBB0_2
; %bb.1:
	ldr	x11, [x22]
	cmp	x8, x11
	b.ne	LBB0_6
LBB0_2:
Lloh28:
	adrp	x11, _ADVERTISED_Autoneg@GOTPAGE
Lloh29:
	ldr	x11, [x11, _ADVERTISED_Autoneg@GOTPAGEOFF]
Lloh30:
	ldr	w11, [x11]
	orr	w9, w11, w9
	cmp	x8, x10
	b.ne	LBB0_4
; %bb.3:
Lloh31:
	adrp	x8, _ADVERTISED_10baseT_Half@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ADVERTISED_10baseT_Half@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x10, _ADVERTISED_10baseT_Full@GOTPAGE
Lloh35:
	ldr	x10, [x10, _ADVERTISED_10baseT_Full@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
Lloh37:
	adrp	x11, _ADVERTISED_100baseT_Half@GOTPAGE
Lloh38:
	ldr	x11, [x11, _ADVERTISED_100baseT_Half@GOTPAGEOFF]
Lloh39:
	ldr	w11, [x11]
Lloh40:
	adrp	x12, _ADVERTISED_100baseT_Full@GOTPAGE
Lloh41:
	ldr	x12, [x12, _ADVERTISED_100baseT_Full@GOTPAGEOFF]
Lloh42:
	ldr	w12, [x12]
Lloh43:
	adrp	x13, _ADVERTISED_1000baseT_Full@GOTPAGE
Lloh44:
	ldr	x13, [x13, _ADVERTISED_1000baseT_Full@GOTPAGEOFF]
Lloh45:
	ldr	w13, [x13]
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w8, w8, w12
	orr	w8, w8, w13
	b	LBB0_5
LBB0_4:
Lloh46:
	adrp	x8, _ADVERTISED_1000baseT_Full@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ADVERTISED_1000baseT_Full@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	orr	w8, w8, w9
LBB0_5:
	str	w8, [x19, #4]
LBB0_6:
Lloh49:
	adrp	x8, _PORT_TP@GOTPAGE
Lloh50:
	ldr	x8, [x8, _PORT_TP@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	str	xzr, [x19, #24]
Lloh52:
	adrp	x8, _XCVR_INTERNAL@GOTPAGE
Lloh53:
	ldr	x8, [x8, _XCVR_INTERNAL@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	ldr	w0, [x0]
	bl	_netif_carrier_ok
	cbz	x0, LBB0_8
; %bb.7:
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x20
	bl	_atl1_get_speed_and_duplex
	ldr	x8, [sp, #8]
	str	w8, [x19, #8]
	ldr	x8, [sp]
Lloh55:
	adrp	x9, _FULL_DUPLEX@GOTPAGE
Lloh56:
	ldr	x9, [x9, _FULL_DUPLEX@GOTPAGEOFF]
Lloh57:
	ldr	x9, [x9]
Lloh58:
	adrp	x10, _DUPLEX_FULL@GOTPAGE
Lloh59:
	ldr	x10, [x10, _DUPLEX_FULL@GOTPAGEOFF]
Lloh60:
	adrp	x11, _DUPLEX_HALF@GOTPAGE
Lloh61:
	ldr	x11, [x11, _DUPLEX_HALF@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [x19, #12]
	b	LBB0_9
LBB0_8:
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x19, #8]
LBB0_9:
	ldr	x8, [x20]
	ldr	x9, [x21]
	ldr	x10, [x22]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
Lloh62:
	adrp	x8, _AUTONEG_ENABLE@GOTPAGE
Lloh63:
	ldr	x8, [x8, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh64:
	adrp	x9, _AUTONEG_DISABLE@GOTPAGE
Lloh65:
	ldr	x9, [x9, _AUTONEG_DISABLE@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #16]
	mov	w0, #0
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh62, Lloh63
	.cfi_endproc
                                        ; -- End function
	.comm	_SUPPORTED_10baseT_Half,4,2     ; @SUPPORTED_10baseT_Half
	.comm	_SUPPORTED_10baseT_Full,4,2     ; @SUPPORTED_10baseT_Full
	.comm	_SUPPORTED_100baseT_Half,4,2    ; @SUPPORTED_100baseT_Half
	.comm	_SUPPORTED_100baseT_Full,4,2    ; @SUPPORTED_100baseT_Full
	.comm	_SUPPORTED_1000baseT_Full,4,2   ; @SUPPORTED_1000baseT_Full
	.comm	_SUPPORTED_Autoneg,4,2          ; @SUPPORTED_Autoneg
	.comm	_SUPPORTED_TP,4,2               ; @SUPPORTED_TP
	.comm	_ADVERTISED_TP,4,2              ; @ADVERTISED_TP
	.comm	_MEDIA_TYPE_AUTO_SENSOR,8,3     ; @MEDIA_TYPE_AUTO_SENSOR
	.comm	_MEDIA_TYPE_1000M_FULL,8,3      ; @MEDIA_TYPE_1000M_FULL
	.comm	_ADVERTISED_Autoneg,4,2         ; @ADVERTISED_Autoneg
	.comm	_ADVERTISED_10baseT_Half,4,2    ; @ADVERTISED_10baseT_Half
	.comm	_ADVERTISED_10baseT_Full,4,2    ; @ADVERTISED_10baseT_Full
	.comm	_ADVERTISED_100baseT_Half,4,2   ; @ADVERTISED_100baseT_Half
	.comm	_ADVERTISED_100baseT_Full,4,2   ; @ADVERTISED_100baseT_Full
	.comm	_ADVERTISED_1000baseT_Full,4,2  ; @ADVERTISED_1000baseT_Full
	.comm	_PORT_TP,4,2                    ; @PORT_TP
	.comm	_XCVR_INTERNAL,4,2              ; @XCVR_INTERNAL
	.comm	_FULL_DUPLEX,8,3                ; @FULL_DUPLEX
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ; @DUPLEX_HALF
	.comm	_AUTONEG_ENABLE,4,2             ; @AUTONEG_ENABLE
	.comm	_AUTONEG_DISABLE,4,2            ; @AUTONEG_DISABLE
	.no_dead_strip	_atl1_get_settings
.subsections_via_symbols
