	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_set_channels
_xgbe_set_channels:                     ## @xgbe_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	(%rax), %esi
	movl	32(%rax), %edi
	callq	_min
	movl	4(%rbx), %esi
	movl	%eax, %edi
	callq	_min
	movl	%eax, %r13d
	movl	8(%rbx), %esi
	movl	36(%rbx), %edi
	callq	_min
	movl	12(%rbx), %esi
	movl	%eax, %edi
	callq	_min
	movl	4(%rbx), %esi
	movl	%eax, %edi
	callq	_min
	movl	%eax, %r14d
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_min
	cmpq	$0, 16(%r12)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_16
LBB0_2:
	movl	(%r12), %edx
	testl	%edx, %edx
	je	LBB0_3
## %bb.5:
	cmpl	%eax, %edx
	jbe	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rbx
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_15
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_7:
	movl	4(%r12), %eax
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	cmpl	$0, 8(%r12)
	je	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
LBB0_4:
	movq	%r12, %rbx
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_15
LBB0_10:
	addl	%edx, %eax
	cmpl	%r13d, %eax
	jbe	LBB0_12
## %bb.11:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rbx
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movl	%eax, %edx
	movl	%r13d, %ecx
	jmp	LBB0_14
LBB0_12:
	addl	8(%r12), %edx
	cmpl	%r14d, %edx
	jbe	LBB0_17
## %bb.13:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rbx
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movl	%r14d, %ecx
LBB0_14:
	xorl	%eax, %eax
	callq	_netdev_err
LBB0_15:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_xgbe_print_set_channels_input
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_24:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	16(%rbx), %ecx
	testl	%ecx, %ecx
	jne	LBB0_19
## %bb.18:
	movl	20(%rbx), %ecx
LBB0_19:
	movl	24(%rbx), %esi
	testl	%esi, %esi
	jne	LBB0_21
## %bb.20:
	movl	28(%rbx), %esi
LBB0_21:
	xorl	%r12d, %r12d
	cmpl	%ecx, %eax
	jne	LBB0_23
## %bb.22:
	cmpl	%esi, %edx
	je	LBB0_24
LBB0_23:
	movl	%eax, 16(%rbx)
	movl	%edx, 24(%rbx)
	movq	%rbx, %rdi
	callq	_xgbe_full_restart_dev
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"other channel count must be zero\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"at least one combined Rx/Tx channel is required\n"

L_.str.2:                               ## @.str.2
	.asciz	"combined channel count cannot exceed %u\n"

L_.str.3:                               ## @.str.3
	.asciz	"cannot specify both Rx-only and Tx-only channels\n"

L_.str.4:                               ## @.str.4
	.asciz	"total Rx channels (%u) requested exceeds maximum available (%u)\n"

L_.str.5:                               ## @.str.5
	.asciz	"total Tx channels (%u) requested exceeds maximum available (%u)\n"

	.no_dead_strip	_xgbe_set_channels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_set_channels
_xgbe_set_channels:                     ; @xgbe_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	x19, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	w0, [x0, #32]
	ldr	w1, [x21]
	bl	_min
	ldr	w1, [x21, #4]
	bl	_min
	mov	x22, x0
	ldr	w0, [x21, #36]
	ldr	w1, [x21, #8]
	bl	_min
	ldr	w1, [x21, #12]
	bl	_min
	ldr	w1, [x21, #4]
	bl	_min
	mov	x23, x0
	mov	x0, x22
	mov	x1, x23
	bl	_min
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	b	LBB0_14
LBB0_2:
	ldr	w9, [x19]
	cbz	w9, LBB0_5
; %bb.3:
	cmp	w9, w0
	b.ls	LBB0_6
; %bb.4:
	str	x0, [sp]
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_5:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_6:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_9
; %bb.7:
	ldr	w10, [x19, #8]
	cbz	w10, LBB0_9
; %bb.8:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_9:
	add	w8, w8, w9
	cmp	w8, w22
	b.ls	LBB0_11
; %bb.10:
	stp	x8, x22, [sp]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_13
LBB0_11:
	ldr	w10, [x19, #8]
	add	w9, w10, w9
	cmp	w9, w23
	b.ls	LBB0_16
; %bb.12:
	stp	x9, x23, [sp]
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_13:
	mov	x0, x20
	bl	_netdev_err
	mov	x0, x20
	mov	x1, x19
	bl	_xgbe_print_set_channels_input
LBB0_14:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	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_16:
	ldr	w10, [x21, #16]
	cbz	w10, LBB0_19
; %bb.17:
	ldr	w11, [x21, #24]
	cbz	w11, LBB0_20
LBB0_18:
	cmp	w8, w10
	b.eq	LBB0_21
	b	LBB0_22
LBB0_19:
	ldr	w10, [x21, #20]
	ldr	w11, [x21, #24]
	cbnz	w11, LBB0_18
LBB0_20:
	ldr	w11, [x21, #28]
	cmp	w8, w10
	b.ne	LBB0_22
LBB0_21:
	cmp	w9, w11
	b.eq	LBB0_23
LBB0_22:
	str	w8, [x21, #16]
	str	w9, [x21, #24]
	mov	x0, x21
	bl	_xgbe_full_restart_dev
LBB0_23:
	mov	w0, #0
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"other channel count must be zero\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"at least one combined Rx/Tx channel is required\n"

l_.str.2:                               ; @.str.2
	.asciz	"combined channel count cannot exceed %u\n"

l_.str.3:                               ; @.str.3
	.asciz	"cannot specify both Rx-only and Tx-only channels\n"

l_.str.4:                               ; @.str.4
	.asciz	"total Rx channels (%u) requested exceeds maximum available (%u)\n"

l_.str.5:                               ; @.str.5
	.asciz	"total Tx channels (%u) requested exceeds maximum available (%u)\n"

	.no_dead_strip	_xgbe_set_channels
.subsections_via_symbols
