	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bond_choose_primary_or_current
_bond_choose_primary_or_current:        ## @bond_choose_primary_or_current
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	callq	_rtnl_dereference
	movq	%rax, %r14
	movl	12(%rbx), %edi
	callq	_rtnl_dereference
	movq	%rax, %r15
	testq	%r14, %r14
	je	LBB0_4
## %bb.1:
	movq	(%r14), %rax
	movq	_BOND_LINK_UP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	cmpl	$0, (%rbx)
	je	LBB0_8
## %bb.3:
	movl	$0, (%rbx)
	movq	%r14, %r15
	jmp	LBB0_7
LBB0_4:
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:
	movq	(%r15), %rax
	movq	_BOND_LINK_UP@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	cmovneq	%rdx, %r15
	jmp	LBB0_7
LBB0_6:
	xorl	%r15d, %r15d
	jmp	LBB0_7
LBB0_8:
	testq	%r15, %r15
	je	LBB0_17
## %bb.9:
	cmpq	%rax, (%r15)
	jne	LBB0_17
## %bb.10:
	movl	4(%rbx), %edx
	cmpl	$128, %edx
	je	LBB0_7
## %bb.11:
	cmpl	$130, %edx
	je	LBB0_17
## %bb.12:
	cmpl	$129, %edx
	jne	LBB0_20
## %bb.13:
	movl	12(%r15), %eax
	cmpl	%eax, 12(%r14)
	jl	LBB0_7
## %bb.14:
	jne	LBB0_17
## %bb.15:
	movl	8(%r14), %eax
	cmpl	8(%r15), %eax
	jle	LBB0_7
LBB0_17:
	movq	%r14, %r15
LBB0_7:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_BOND_LINK_UP,8,3               ## @BOND_LINK_UP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"impossible primary_reselect %d\n"

	.no_dead_strip	_bond_choose_primary_or_current
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bond_choose_primary_or_current
_bond_choose_primary_or_current:        ; @bond_choose_primary_or_current
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x0
	ldr	w0, [x0, #16]
	bl	_rtnl_dereference
	mov	x20, x0
	ldr	w0, [x21, #12]
	bl	_rtnl_dereference
	mov	x19, x0
Lloh0:
	adrp	x8, _BOND_LINK_UP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BOND_LINK_UP@GOTPAGEOFF]
	cbz	x20, LBB0_4
; %bb.1:
	ldr	x9, [x20]
	ldr	x10, [x8]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x21]
	cbz	w8, LBB0_7
; %bb.3:
	str	wzr, [x21]
	mov	x19, x20
	b	LBB0_6
LBB0_4:
	cbz	x19, LBB0_6
; %bb.5:
	ldr	x9, [x19]
	ldr	x8, [x8]
	cmp	x9, x8
	csel	x19, x19, xzr, eq
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	cbz	x19, LBB0_15
; %bb.8:
	ldr	x8, [x19]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.9:
	ldr	w2, [x21, #4]
	cmp	w2, #128
	b.eq	LBB0_6
; %bb.10:
	cmp	w2, #130
	b.eq	LBB0_15
; %bb.11:
	cmp	w2, #129
	b.ne	LBB0_16
; %bb.12:
	ldr	w8, [x20, #12]
	ldr	w9, [x19, #12]
	cmp	w8, w9
	b.lt	LBB0_6
; %bb.13:
	b.ne	LBB0_15
; %bb.14:
	ldr	w8, [x20, #8]
	ldr	w9, [x19, #8]
	cmp	w8, w9
	b.le	LBB0_6
LBB0_15:
	mov	x19, x20
	b	LBB0_6
LBB0_16:
	ldr	w0, [x21, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_BOND_LINK_UP,8,3               ; @BOND_LINK_UP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"impossible primary_reselect %d\n"

	.no_dead_strip	_bond_choose_primary_or_current
.subsections_via_symbols
