	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bond_do_fail_over_mac
_bond_do_fail_over_mac:                 ## @bond_do_fail_over_mac
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_MAX_ADDR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movl	(%r14), %edx
	cmpl	$128, %edx
	je	LBB0_6
## %bb.1:
	cmpl	$129, %edx
	jne	LBB0_17
## %bb.2:
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.3:
	movq	8(%r14), %rdi
	movq	(%rbx), %rsi
	callq	_bond_set_dev_addr
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	movq	8(%r14), %rdi
	movq	(%rbx), %rsi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_19
## %bb.5:
	negl	%eax
	leaq	L_.str(%rip), %rdx
	movl	%eax, %ecx
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_slave_err                      ## TAILCALL
LBB0_6:
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.7:
	testq	%r15, %r15
	jne	LBB0_12
## %bb.8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_bond_get_old_active
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_9
LBB0_12:
	movq	(%rbx), %rax
	movq	8(%rax), %rsi
	movl	4(%rax), %edx
	movq	%r12, %rdi
	callq	_bond_hw_addr_copy
	movq	(%r15), %rax
	movq	8(%rax), %rsi
	movl	4(%rax), %edx
	callq	_bond_hw_addr_copy
	movq	(%rbx), %rdi
	movl	(%rdi), %eax
	movl	%eax, -56(%rbp)
	leaq	-56(%rbp), %rsi
	xorl	%edx, %edx
	callq	_dev_set_mac_address
	testl	%eax, %eax
	je	LBB0_15
LBB0_13:
	movq	8(%r14), %rdi
	movq	(%rbx), %rsi
	negl	%eax
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_14
LBB0_17:
	movq	8(%r14), %rdi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	leaq	L_.str.3(%rip), %rsi
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_err                     ## TAILCALL
LBB0_15:
	movq	-48(%rbp), %rdi
	movq	(%rbx), %rax
	movl	4(%rax), %edx
	movq	%r12, %rsi
	callq	_bond_hw_addr_copy
	movq	(%r15), %rdi
	movl	(%rdi), %eax
	movl	%eax, -56(%rbp)
	leaq	-56(%rbp), %rsi
	xorl	%edx, %edx
	callq	_dev_set_mac_address
	testl	%eax, %eax
	je	LBB0_10
## %bb.16:
	movq	8(%r14), %rdi
	movq	(%r15), %rsi
	negl	%eax
	leaq	L_.str.2(%rip), %rdx
LBB0_14:
	movl	%eax, %ecx
	callq	_slave_err
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_19
## %bb.11:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	8(%r14), %rax
	movq	8(%rax), %rsi
	movl	4(%rax), %edx
	callq	_bond_hw_addr_copy
	movq	8(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	(%rbx), %rdi
	leaq	-56(%rbp), %rsi
	xorl	%edx, %edx
	callq	_dev_set_mac_address
	testl	%eax, %eax
	jne	LBB0_13
	jmp	LBB0_10
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_ADDR_LEN,4,2               ## @MAX_ADDR_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error %d setting bond MAC from slave\n"

L_.str.1:                               ## @.str.1
	.asciz	"Error %d setting MAC of new active slave\n"

L_.str.2:                               ## @.str.2
	.asciz	"Error %d setting MAC of old active slave\n"

L_.str.3:                               ## @.str.3
	.asciz	"bond_do_fail_over_mac impossible: bad policy %d\n"

	.no_dead_strip	_bond_do_fail_over_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bond_do_fail_over_mac
_bond_do_fail_over_mac:                 ; @bond_do_fail_over_mac
	.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
	sub	sp, sp, #32
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _MAX_ADDR_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_ADDR_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	w2, [x0]
	cmp	w2, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	w2, #129
	b.ne	LBB0_11
; %bb.2:
	cbz	x20, LBB0_16
; %bb.3:
	ldr	x0, [x19, #8]
	ldr	x1, [x20]
	bl	_bond_set_dev_addr
	cbz	w0, LBB0_16
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	x1, [x20]
	ldur	x9, [x29, #-40]
Lloh8:
	adrp	x10, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x10, [x10, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x10, x9
	b.ne	LBB0_19
; %bb.5:
	neg	w3, w0
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x8
	sub	sp, x29, #32
	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
	b	_slave_err
LBB0_6:
	cbz	x20, LBB0_16
; %bb.7:
	cbnz	x21, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	x1, x20
	bl	_bond_get_old_active
	mov	x21, x0
	cbz	x0, LBB0_18
LBB0_9:
	ldr	x8, [x20]
	ldr	x1, [x8, #8]
	ldr	w2, [x8, #4]
	mov	x0, x22
	bl	_bond_hw_addr_copy
	ldr	x8, [x21]
	ldr	x1, [x8, #8]
	ldr	w2, [x8, #4]
	bl	_bond_hw_addr_copy
	ldr	x0, [x20]
	ldr	w8, [x0]
	stur	w8, [x29, #-56]
	sub	x1, x29, #56
	mov	x2, #0
	bl	_dev_set_mac_address
	cbz	w0, LBB0_13
LBB0_10:
	ldr	x8, [x19, #8]
	ldr	x1, [x20]
	neg	w3, w0
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_11:
	ldr	x0, [x19, #8]
	ldur	x8, [x29, #-40]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.12:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	sub	sp, x29, #32
	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
	b	_netdev_err
LBB0_13:
	ldur	x0, [x29, #-48]
	ldr	x8, [x20]
	ldr	w2, [x8, #4]
	mov	x1, x22
	bl	_bond_hw_addr_copy
	ldr	x0, [x21]
	ldr	w8, [x0]
	stur	w8, [x29, #-56]
	sub	x1, x29, #56
	mov	x2, #0
	bl	_dev_set_mac_address
	cbz	w0, LBB0_16
; %bb.14:
	ldr	x8, [x19, #8]
	ldr	x1, [x21]
	neg	w3, w0
Lloh20:
	adrp	x2, l_.str.2@PAGE
Lloh21:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_15:
	mov	x0, x8
	bl	_slave_err
LBB0_16:
	ldur	x8, [x29, #-40]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.17:
	sub	sp, x29, #32
	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_18:
	ldr	x8, [x19, #8]
	ldr	x1, [x8, #8]
	ldr	w2, [x8, #4]
	bl	_bond_hw_addr_copy
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	stur	w8, [x29, #-56]
	ldr	x0, [x20]
	sub	x1, x29, #56
	mov	x2, #0
	bl	_dev_set_mac_address
	cbnz	w0, LBB0_10
	b	LBB0_16
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_ADDR_LEN,4,2               ; @MAX_ADDR_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error %d setting bond MAC from slave\n"

l_.str.1:                               ; @.str.1
	.asciz	"Error %d setting MAC of new active slave\n"

l_.str.2:                               ; @.str.2
	.asciz	"Error %d setting MAC of old active slave\n"

l_.str.3:                               ; @.str.3
	.asciz	"bond_do_fail_over_mac impossible: bad policy %d\n"

	.no_dead_strip	_bond_do_fail_over_mac
.subsections_via_symbols
