	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bond_option_mode_set
_bond_option_mode_set:                  ## @bond_option_mode_set
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rsi), %rdi
	callq	_bond_mode_uses_arp
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	cmpq	$0, 32(%rbx)
	je	LBB0_3
## %bb.2:
	movl	40(%rbx), %edi
	movq	8(%r14), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_netdev_dbg
	movq	$0, 32(%rbx)
LBB0_3:
	cmpq	$0, 24(%rbx)
	jne	LBB0_5
## %bb.4:
	movq	_BOND_DEFAULT_MIIMON@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rdx, 24(%rbx)
	movl	40(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_dbg
LBB0_5:
	movq	(%r14), %rax
	movq	_BOND_MODE_ALB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movl	$1, (%rbx)
LBB0_7:
	movq	_BOND_ARP_VALIDATE_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rbx)
	movq	%rax, 8(%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s mode is incompatible with arp monitoring, start mii monitoring\n"

	.comm	_BOND_DEFAULT_MIIMON,8,3        ## @BOND_DEFAULT_MIIMON
L_.str.1:                               ## @.str.1
	.asciz	"Setting MII monitoring interval to %d\n"

	.comm	_BOND_MODE_ALB,8,3              ## @BOND_MODE_ALB
	.comm	_BOND_ARP_VALIDATE_NONE,4,2     ## @BOND_ARP_VALIDATE_NONE
	.no_dead_strip	_bond_option_mode_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bond_option_mode_set
_bond_option_mode_set:                  ; @bond_option_mode_set
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x1]
	bl	_bond_mode_uses_arp
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w0, [x19, #40]
	ldr	x2, [x20, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_dbg
	str	xzr, [x19, #32]
LBB0_3:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_5
; %bb.4:
Lloh2:
	adrp	x8, _BOND_DEFAULT_MIIMON@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BOND_DEFAULT_MIIMON@GOTPAGEOFF]
Lloh4:
	ldr	x2, [x8]
	str	x2, [x19, #24]
	ldr	w0, [x19, #40]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_dbg
LBB0_5:
	ldr	x8, [x20]
Lloh7:
	adrp	x9, _BOND_MODE_ALB@GOTPAGE
Lloh8:
	ldr	x9, [x9, _BOND_MODE_ALB@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	mov	w9, #1
	str	w9, [x19]
LBB0_7:
Lloh10:
	adrp	x9, _BOND_ARP_VALIDATE_NONE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _BOND_ARP_VALIDATE_NONE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	str	w9, [x19, #16]
	str	x8, [x19, #8]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s mode is incompatible with arp monitoring, start mii monitoring\n"

	.comm	_BOND_DEFAULT_MIIMON,8,3        ; @BOND_DEFAULT_MIIMON
l_.str.1:                               ; @.str.1
	.asciz	"Setting MII monitoring interval to %d\n"

	.comm	_BOND_MODE_ALB,8,3              ; @BOND_MODE_ALB
	.comm	_BOND_ARP_VALIDATE_NONE,4,2     ; @BOND_ARP_VALIDATE_NONE
	.no_dead_strip	_bond_option_mode_set
.subsections_via_symbols
