	.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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	movl	$0, -24(%rbp)
	movq	_ETHTOOL_GSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	_DUPLEX_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	(%rdi), %rax
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	leaq	-24(%rbp), %rsi
	callq	*%rax
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	leaq	-24(%rbp), %rdi
	callq	_ethtool_cmd_speed
	leaq	1(%rax), %rcx
	cmpq	$2, %rcx
	jb	LBB0_6
## %bb.4:
	movl	-24(%rbp), %ecx
	movl	%ecx, %edx
	andl	$-2, %edx
	cmpl	$128, %edx
	jne	LBB0_6
## %bb.5:
	movq	%rax, 8(%rbx)
	movl	%ecx, (%rbx)
	xorl	%r14d, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETHTOOL_GSET,4,2               ## @ETHTOOL_GSET
	.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, _ETHTOOL_GSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETHTOOL_GSET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #8]
Lloh3:
	adrp	x8, _SPEED_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPEED_UNKNOWN@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh6:
	adrp	x8, _DUPLEX_UNKNOWN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DUPLEX_UNKNOWN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19]
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.2:
	add	x1, sp, #8
	blr	x8
	tbnz	w0, #31, LBB0_6
; %bb.3:
	add	x0, sp, #8
	bl	_ethtool_cmd_speed
	add	x9, x0, #1
	cmp	x9, #2
	b.lo	LBB0_6
; %bb.4:
	ldr	w9, [sp, #8]
	and	w10, w9, #0xfffffffe
	cmp	w10, #128
	b.ne	LBB0_6
; %bb.5:
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #8]
	str	w9, [x19]
	b	LBB0_7
LBB0_6:
	mov	w0, #-1
LBB0_7:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ETHTOOL_GSET,4,2               ; @ETHTOOL_GSET
	.comm	_SPEED_UNKNOWN,8,3              ; @SPEED_UNKNOWN
	.comm	_DUPLEX_UNKNOWN,4,2             ; @DUPLEX_UNKNOWN
	.no_dead_strip	_bond_update_speed_duplex
.subsections_via_symbols
