	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bond_update_speed_duplex
_bond_update_speed_duplex:              ## @bond_update_speed_duplex
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	_DUPLEX_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	leaq	-24(%rbp), %rsi
	callq	___ethtool_get_link_ksettings
	movl	%eax, %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	js	LBB0_4
## %bb.1:
	movq	-24(%rbp), %rcx
	leaq	1(%rcx), %rdx
	cmpq	$2, %rdx
	jb	LBB0_4
## %bb.2:
	movl	-16(%rbp), %edx
	movl	%edx, %esi
	andl	$-2, %esi
	cmpl	$128, %esi
	jne	LBB0_4
## %bb.3:
	movq	%rcx, (%rbx)
	movl	%edx, 8(%rbx)
	xorl	%eax, %eax
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPEED_UNKNOWN,8,3              ## @SPEED_UNKNOWN
	.comm	_DUPLEX_UNKNOWN,4,2             ## @DUPLEX_UNKNOWN
	.no_dead_strip	_bond_update_speed_duplex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bond_update_speed_duplex
_bond_update_speed_duplex:              ; @bond_update_speed_duplex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x0, [x0, #16]
Lloh0:
	adrp	x8, _SPEED_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPEED_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh3:
	adrp	x8, _DUPLEX_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DUPLEX_UNKNOWN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	x1, sp
	bl	___ethtool_get_link_ksettings
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	x8, [sp]
	add	x9, x8, #1
	cmp	x9, #2
	b.lo	LBB0_4
; %bb.2:
	ldr	w9, [sp, #8]
	and	w10, w9, #0xfffffffe
	cmp	w10, #128
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	str	x8, [x19]
	str	w9, [x19, #8]
	b	LBB0_5
LBB0_4:
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SPEED_UNKNOWN,8,3              ; @SPEED_UNKNOWN
	.comm	_DUPLEX_UNKNOWN,4,2             ; @DUPLEX_UNKNOWN
	.no_dead_strip	_bond_update_speed_duplex
.subsections_via_symbols
