	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bond_check_dev_link
_bond_check_dev_link:                   ## @bond_check_dev_link
	.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
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	16(%rsi), %r15
	testl	%edx, %edx
	jne	LBB0_3
## %bb.1:
	movq	%r12, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	cmpq	$0, (%rbx)
	je	LBB0_7
## %bb.4:
	movq	%r12, %rdi
	callq	_netif_carrier_ok
LBB0_5:
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.6:
	movq	_BMSR_LSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_15
LBB0_7:
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	callq	*%rax
	jmp	LBB0_5
LBB0_10:
	cmpq	$0, (%r15)
	je	LBB0_14
## %bb.11:
	movl	(%r12), %esi
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strncpy
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_if_mii
	movq	%rax, %r15
	movq	_SIOCGMIIPHY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_IOCTL
	testq	%rax, %rax
	jne	LBB0_14
## %bb.12:
	movq	_MII_BMSR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	_SIOCGMIIREG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	callq	_IOCTL
	testq	%rax, %rax
	je	LBB0_13
LBB0_14:
	movq	_BMSR_LSTATUS@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	negl	%r14d
	sbbl	%eax, %eax
	orl	(%rcx), %eax
	jmp	LBB0_15
LBB0_2:
	xorl	%eax, %eax
LBB0_15:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_BMSR_LSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r15), %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_BMSR_LSTATUS,4,2               ## @BMSR_LSTATUS
	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.comm	_SIOCGMIIPHY,4,2                ## @SIOCGMIIPHY
	.comm	_MII_BMSR,4,2                   ## @MII_BMSR
	.comm	_SIOCGMIIREG,4,2                ## @SIOCGMIIREG
	.no_dead_strip	_bond_check_dev_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bond_check_dev_link
_bond_check_dev_link:                   ; @bond_check_dev_link
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x1, #16]
	cbnz	w2, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_netif_running
	cbz	w0, LBB0_12
LBB0_2:
	ldr	x8, [x21]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_netif_carrier_ok
LBB0_4:
Lloh0:
	adrp	x8, _BMSR_LSTATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BMSR_LSTATUS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, wzr, w8, eq
	b	LBB0_12
LBB0_5:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x20
	blr	x8
	b	LBB0_4
LBB0_8:
	ldr	x8, [x22]
	cbz	x8, LBB0_11
; %bb.9:
	ldr	w1, [x20]
Lloh3:
	adrp	x8, _IFNAMSIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IFNAMSIZ@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_strncpy
	add	x0, sp, #8
	bl	_if_mii
	mov	x21, x0
Lloh6:
	adrp	x8, _SIOCGMIIPHY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SIOCGMIIPHY@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_IOCTL
	cbnz	x0, LBB0_11
; %bb.10:
Lloh9:
	adrp	x8, _MII_BMSR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MII_BMSR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x21, #4]
Lloh12:
	adrp	x8, _SIOCGMIIREG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SIOCGMIIREG@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_IOCTL
	cbz	x0, LBB0_13
LBB0_11:
Lloh15:
	adrp	x8, _BMSR_LSTATUS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BMSR_LSTATUS@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w19, #0
	csinv	w0, w8, wzr, eq
LBB0_12:
	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
LBB0_13:
	ldr	w8, [x21]
Lloh18:
	adrp	x9, _BMSR_LSTATUS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BMSR_LSTATUS@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	and	w0, w9, w8
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_BMSR_LSTATUS,4,2               ; @BMSR_LSTATUS
	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.comm	_SIOCGMIIPHY,4,2                ; @SIOCGMIIPHY
	.comm	_MII_BMSR,4,2                   ; @MII_BMSR
	.comm	_SIOCGMIIREG,4,2                ; @SIOCGMIIREG
	.no_dead_strip	_bond_check_dev_link
.subsections_via_symbols
