	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnad_change_mtu
_bnad_change_mtu:                       ## @bnad_change_mtu
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_ETH_HLEN@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	addl	%ebx, %eax
	movq	_ETH_ZLEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_2
## %bb.1:
	movq	_BNAD_JUMBO_MTU@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jl	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	%ebx, (%r15)
	movq	_VLAN_HLEN@GOTPCREL(%rip), %rax
	movq	_ETH_FCS_LEN@GOTPCREL(%rip), %rcx
	addl	(%r12), %ebx
	addl	(%rax), %ebx
	addl	(%rcx), %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_bnad_mtu_set
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	testl	%eax, %eax
	cmovel	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_ETH_ZLEN,4,2                   ## @ETH_ZLEN
	.comm	_BNAD_JUMBO_MTU,4,2             ## @BNAD_JUMBO_MTU
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VLAN_HLEN,4,2                  ## @VLAN_HLEN
	.comm	_ETH_FCS_LEN,4,2                ## @ETH_FCS_LEN
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_bnad_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnad_change_mtu
_bnad_change_mtu:                       ; @bnad_change_mtu
	.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	x20, x1
	mov	x21, x0
	bl	_netdev_priv
Lloh0:
	adrp	x22, _ETH_HLEN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ETH_HLEN@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x9, _ETH_ZLEN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ETH_ZLEN@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _BNAD_JUMBO_MTU@GOTPAGE
Lloh6:
	ldr	x10, [x10, _BNAD_JUMBO_MTU@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	add	w8, w8, w20
	cmp	w8, w9
	ccmp	w10, w20, #8, ge
	b.ge	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_3
LBB0_2:
	mov	x19, x0
	bl	_mutex_lock
	str	w20, [x21]
	ldr	w8, [x22]
Lloh11:
	adrp	x9, _VLAN_HLEN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _VLAN_HLEN@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _ETH_FCS_LEN@GOTPAGE
Lloh15:
	ldr	x10, [x10, _ETH_FCS_LEN@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	add	w8, w8, w20
	add	w8, w8, w9
	add	w1, w8, w10
	mov	x0, x19
	bl	_bnad_mtu_set
Lloh17:
	adrp	x8, _EBUSY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w20, wzr, w8, eq
	mov	x0, x19
	bl	_mutex_unlock
LBB0_3:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_ETH_ZLEN,4,2                   ; @ETH_ZLEN
	.comm	_BNAD_JUMBO_MTU,4,2             ; @BNAD_JUMBO_MTU
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VLAN_HLEN,4,2                  ; @VLAN_HLEN
	.comm	_ETH_FCS_LEN,4,2                ; @ETH_FCS_LEN
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_bnad_change_mtu
.subsections_via_symbols
