	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_set_link_ksettings
_xgbe_set_link_ksettings:               ## @xgbe_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_advertising@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	___ETHTOOL_DECLARE_LINK_MODE_MASK
	movq	(%r15), %rdx
	cmpq	16(%rbx), %rdx
	jne	LBB0_1
## %bb.5:
	movq	%rbx, %rdi
	movq	24(%r15), %r12
	movq	8(%r15), %rdx
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rbx
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%rbx), %rdx
	je	LBB0_8
## %bb.6:
	cmpq	%rax, %rdx
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str(%rip), %rsi
LBB0_2:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
LBB0_3:
	xorl	%eax, %eax
	callq	_netdev_err
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	cmpq	%rax, %rdx
	jne	LBB0_13
## %bb.9:
	movq	%r12, %rsi
	movq	%rdi, %rbx
	callq	*8(%rdi)
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movq	16(%r15), %rdx
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	movq	%rbx, %rdi
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rbx
	jne	LBB0_12
LBB0_13:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	___ETHTOOL_LINK_MODE_MASK_NBITS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	32(%r15), %r9d
	movl	84(%rdi), %eax
	movq	%rdi, %r12
	leaq	L_.str.4(%rip), %rcx
	movq	%r14, %rdx
	pushq	%rax
	pushq	%r8
	callq	_netif_dbg
	addq	$16, %rsp
	movl	(%r13), %edi
	movl	32(%r15), %esi
	movl	84(%r12), %edx
	movq	___ETHTOOL_LINK_MODE_MASK_NBITS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_bitmap_and
	movq	8(%r15), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_16
## %bb.14:
	movl	(%r13), %edi
	movq	___ETHTOOL_LINK_MODE_MASK_NBITS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bitmap_empty
	testq	%rax, %rax
	je	LBB0_15
## %bb.22:
	leaq	L_.str.5(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_4
LBB0_10:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	%r12, %rdx
	jmp	LBB0_3
LBB0_12:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_2
LBB0_15:
	movq	8(%r15), %rax
LBB0_16:
	movq	%r12, %rbx
	addq	$48, %rbx
	movq	%rax, 24(%r12)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 40(%r12)
	movq	16(%r15), %rax
	movq	%rax, 32(%r12)
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	80(%r12), %edi
	movl	(%r13), %esi
	movq	___ETHTOOL_LINK_MODE_MASK_NBITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_bitmap_copy
	movq	8(%r15), %rax
	movq	_Autoneg@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
	callq	_XGBE_SET_ADV
	jmp	LBB0_19
LBB0_18:
	movq	%rbx, %rdi
	callq	_XGBE_CLR_ADV
LBB0_19:
	movq	%r14, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_20
## %bb.23:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*(%rdi)                         ## TAILCALL
LBB0_20:
	xorl	%ebx, %ebx
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_advertising,4,2                ## @advertising
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid phy address %hhu\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_AUTONEG_DISABLE,8,3            ## @AUTONEG_DISABLE
L_.str.1:                               ## @.str.1
	.asciz	"unsupported autoneg %hhu\n"

L_.str.2:                               ## @.str.2
	.asciz	"unsupported speed %u\n"

	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
L_.str.3:                               ## @.str.3
	.asciz	"unsupported duplex %hhu\n"

	.comm	_link,4,2                       ## @link
L_.str.4:                               ## @.str.4
	.asciz	"requested advertisement 0x%*pb, phy supported 0x%*pb\n"

	.comm	___ETHTOOL_LINK_MODE_MASK_NBITS,4,2 ## @__ETHTOOL_LINK_MODE_MASK_NBITS
L_.str.5:                               ## @.str.5
	.asciz	"unsupported requested advertisement\n"

	.comm	_Autoneg,4,2                    ## @Autoneg
	.no_dead_strip	_xgbe_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 xgbe_set_link_ksettings
_xgbe_set_link_ksettings:               ; @xgbe_set_link_ksettings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x24, _advertising@GOTPAGE
Lloh1:
	ldr	x24, [x24, _advertising@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	___ETHTOOL_DECLARE_LINK_MODE_MASK
	ldr	x8, [x21]
	ldr	x9, [x20, #16]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.1:
	ldr	x8, [x21, #8]
Lloh2:
	adrp	x25, _AUTONEG_ENABLE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _AUTONEG_ENABLE@GOTPAGEOFF]
	ldr	x10, [x25]
Lloh4:
	adrp	x9, _AUTONEG_DISABLE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
	b.ne	LBB0_9
; %bb.2:
	ldr	x22, [x21, #24]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x20, #8]
	mov	x0, x20
	mov	x1, x22
	blr	x8
	cbz	w0, LBB0_12
; %bb.4:
	ldr	x8, [x21, #16]
Lloh7:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
LBB0_5:
Lloh10:
	adrp	x8, _link@GOTPAGE
Lloh11:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x26, ___ETHTOOL_LINK_MODE_MASK_NBITS@GOTPAGE
Lloh14:
	ldr	x26, [x26, ___ETHTOOL_LINK_MODE_MASK_NBITS@GOTPAGEOFF]
	ldr	w4, [x26]
	ldr	w5, [x21, #32]
	ldr	w7, [x20, #84]
Lloh15:
	adrp	x3, l_.str.4@PAGE
Lloh16:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x6, x4
	bl	_netif_dbg
	ldr	w0, [x24]
	ldr	w1, [x21, #32]
	ldr	w2, [x20, #84]
	ldr	w3, [x26]
	bl	_bitmap_and
	ldr	x8, [x21, #8]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.6:
	ldr	w0, [x24]
	ldr	w1, [x26]
	bl	_bitmap_empty
	cbz	x0, LBB0_14
; %bb.7:
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_10
LBB0_8:
	str	x8, [sp]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_9:
	str	x8, [sp]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_netdev_err
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
	str	x22, [sp]
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_13:
	str	x8, [sp]
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_14:
	ldr	x8, [x21, #8]
LBB0_15:
	add	x23, x20, #48
	str	x22, [x20, #40]
	ldr	x9, [x21, #16]
	stp	x8, x9, [x20, #24]
	ldr	w0, [x20, #80]
	ldr	w1, [x24]
	ldr	w2, [x26]
	bl	_bitmap_copy
	ldr	x8, [x21, #8]
	ldr	x9, [x25]
Lloh30:
	adrp	x10, _Autoneg@GOTPAGE
Lloh31:
	ldr	x10, [x10, _Autoneg@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x10]
	mov	x0, x23
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.16:
	bl	_XGBE_SET_ADV
	b	LBB0_18
LBB0_17:
	bl	_XGBE_CLR_ADV
LBB0_18:
	mov	x0, x19
	bl	_netif_running
	cbz	x0, LBB0_11
; %bb.19:
	ldr	x1, [x20]
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	br	x1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_advertising,4,2                ; @advertising
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid phy address %hhu\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_AUTONEG_DISABLE,8,3            ; @AUTONEG_DISABLE
l_.str.1:                               ; @.str.1
	.asciz	"unsupported autoneg %hhu\n"

l_.str.2:                               ; @.str.2
	.asciz	"unsupported speed %u\n"

	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
l_.str.3:                               ; @.str.3
	.asciz	"unsupported duplex %hhu\n"

	.comm	_link,4,2                       ; @link
l_.str.4:                               ; @.str.4
	.asciz	"requested advertisement 0x%*pb, phy supported 0x%*pb\n"

	.comm	___ETHTOOL_LINK_MODE_MASK_NBITS,4,2 ; @__ETHTOOL_LINK_MODE_MASK_NBITS
l_.str.5:                               ; @.str.5
	.asciz	"unsupported requested advertisement\n"

	.comm	_Autoneg,4,2                    ; @Autoneg
	.no_dead_strip	_xgbe_set_link_ksettings
.subsections_via_symbols
