	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gve_set_channels
_gve_set_channels:                      ## @gve_set_channels
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r13
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%rbx), %r15d
	movl	4(%rbx), %r12d
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_gve_get_channels
	movq	8(%rbx), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_1
## %bb.2:
	testl	%r12d, %r12d
	je	LBB0_1
## %bb.3:
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.4:
	movq	%r13, %rdi
	callq	_netif_carrier_ok
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_gve_adjust_queues
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%r15d, 4(%r14)
	movl	%r12d, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_gve_set_channels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gve_set_channels
_gve_set_channels:                      ; @gve_set_channels
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x1
	mov	x22, x0
	bl	_netdev_priv
	mov	x20, x0
	ldp	w19, w21, [x23]
	mov	x1, sp
	mov	x0, x22
	bl	_gve_get_channels
	ldr	x8, [x23, #8]
	ldr	x9, [sp, #8]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	cmp	w21, #0
	ccmp	w19, #0, #4, ne
	b.ne	LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	mov	x0, x22
	bl	_netif_carrier_ok
	cbz	w0, LBB0_6
; %bb.5:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_gve_adjust_queues
	b	LBB0_3
LBB0_6:
	stp	w21, w19, [x20]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_gve_set_channels
.subsections_via_symbols
