	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_get_channels
_xgbe_get_channels:                     ## @xgbe_get_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movl	(%rax), %esi
	movl	40(%rax), %edi
	callq	_min
	movl	4(%r12), %esi
	movl	%eax, %edi
	callq	_min
	movl	%eax, %r15d
	movl	8(%r12), %esi
	movl	44(%r12), %edi
	callq	_min
	movl	4(%r12), %esi
	movl	%eax, %edi
	callq	_min
	movl	12(%r12), %esi
	movl	%eax, %edi
	callq	_min
	movl	%eax, %ebx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_min
	xorl	%ecx, %ecx
	subl	$1, %r15d
	cmovbl	%ecx, %r15d
	movl	%eax, (%r14)
	subl	$1, %ebx
	cmovbl	%ecx, %ebx
	movl	%r15d, 4(%r14)
	movl	%ebx, 8(%r14)
	movq	32(%r12), %r15
	testq	%r15, %r15
	jne	LBB0_2
## %bb.1:
	movl	16(%r12), %r15d
LBB0_2:
	movq	24(%r12), %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.3:
	movl	20(%r12), %ebx
LBB0_4:
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_min
	subl	%eax, %r15d
	subl	%eax, %ebx
	movl	%eax, 12(%r14)
	movl	%r15d, 16(%r14)
	movl	%ebx, 20(%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_xgbe_get_channels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_get_channels
_xgbe_get_channels:                     ; @xgbe_get_channels
	.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	x19, x1
	bl	_netdev_priv
	mov	x20, x0
	ldr	w0, [x0, #40]
	ldr	w1, [x20]
	bl	_min
	ldr	w1, [x20, #4]
	bl	_min
	mov	x21, x0
	ldr	w0, [x20, #44]
	ldr	w1, [x20, #8]
	bl	_min
	ldr	w1, [x20, #4]
	bl	_min
	ldr	w1, [x20, #12]
	bl	_min
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	bl	_min
	str	w0, [x19]
	fmov	s0, w21
	mov.s	v0[1], w22
	cmeq.2s	v1, v0, #0
	movi.2d	v2, #0xffffffffffffffff
	add.2s	v0, v0, v2
	bic.8b	v0, v0, v1
	stur	d0, [x19, #4]
	ldr	x21, [x20, #32]
	cbz	x21, LBB0_3
; %bb.1:
	ldr	x22, [x20, #24]
	cbz	x22, LBB0_4
LBB0_2:
	mov	x0, x21
	mov	x1, x22
	bl	_min
	sub	w8, w21, w0
	sub	w9, w22, w0
	stp	w0, w8, [x19, #12]
	str	w9, [x19, #20]
	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
LBB0_3:
	ldr	w21, [x20, #16]
	ldr	x22, [x20, #24]
	cbnz	x22, LBB0_2
LBB0_4:
	ldr	w22, [x20, #20]
	b	LBB0_2
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_xgbe_get_channels
.subsections_via_symbols
