	.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, %r14d
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_mutex_lock
	movl	(%rbx), %edi
	movl	%r14d, (%rbx)
	callq	_BNAD_FRAME_SIZE
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_BNAD_FRAME_SIZE
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_BNAD_PCI_DEV_IS_CAT2
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movl	4(%r12), %edi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	cmpl	$4096, %r15d                    ## imm = 0x1000
	jg	LBB0_4
## %bb.3:
	cmpl	$4096, %r14d                    ## imm = 0x1000
	jg	LBB0_6
LBB0_4:
	cmpl	$4097, %r15d                    ## imm = 0x1001
	jl	LBB0_7
## %bb.5:
	cmpl	$4096, %r14d                    ## imm = 0x1000
	jg	LBB0_7
LBB0_6:
	movq	%r12, %rdi
	callq	_bnad_reinit_rx
LBB0_7:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_bnad_mtu_set
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	subl	(%rcx), %edx
	movl	%eax, %ebx
	testl	%eax, %eax
	cmovnel	%edx, %ebx
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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
	mov	x19, x0
	bl	_mutex_lock
	ldr	w0, [x21]
	str	w20, [x21]
	bl	_BNAD_FRAME_SIZE
	mov	x21, x0
	mov	x0, x20
	bl	_BNAD_FRAME_SIZE
	mov	x20, x0
	mov	x0, x19
	bl	_BNAD_PCI_DEV_IS_CAT2
	cbz	x0, LBB0_7
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_netif_running
	cbz	x0, LBB0_7
; %bb.2:
	cmp	w21, #1, lsl #12                ; =4096
	b.gt	LBB0_4
; %bb.3:
	cmp	w20, #1, lsl #12                ; =4096
	b.gt	LBB0_6
LBB0_4:
	cmp	w21, #1, lsl #12                ; =4096
	b.le	LBB0_7
; %bb.5:
	cmp	w20, #1, lsl #12                ; =4096
	b.gt	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_bnad_reinit_rx
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_bnad_mtu_set
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w20, wzr, w8, eq
	mov	x0, x19
	bl	_mutex_unlock
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_bnad_change_mtu
.subsections_via_symbols
