	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fec_enet_get_queue_num
_fec_enet_get_queue_num:                ## @fec_enet_get_queue_num
	.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	(%rdi), %rbx
	movl	$1, (%rdx)
	movl	$1, (%rsi)
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.1:
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rbx, %rdi
	callq	_of_device_is_available
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_of_property_read_u32
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_of_property_read_u32
	movl	(%r12), %edx
	testl	%edx, %edx
	jle	LBB0_4
## %bb.3:
	movq	_FEC_ENET_MAX_TX_QS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jg	LBB0_4
## %bb.5:
	movl	(%r15), %edx
	testl	%edx, %edx
	jle	LBB0_7
## %bb.6:
	movq	_FEC_ENET_MAX_RX_QS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jle	LBB0_9
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
	movq	%r15, %r12
	jmp	LBB0_8
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
LBB0_8:
	movl	$1, (%r12)
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fsl,num-tx-queues"

L_.str.1:                               ## @.str.1
	.asciz	"fsl,num-rx-queues"

	.comm	_FEC_ENET_MAX_TX_QS,4,2         ## @FEC_ENET_MAX_TX_QS
L_.str.2:                               ## @.str.2
	.asciz	"Invalid num_tx(=%d), fall back to 1\n"

	.comm	_FEC_ENET_MAX_RX_QS,4,2         ## @FEC_ENET_MAX_RX_QS
L_.str.3:                               ## @.str.3
	.asciz	"Invalid num_rx(=%d), fall back to 1\n"

	.no_dead_strip	_fec_enet_get_queue_num
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fec_enet_get_queue_num
_fec_enet_get_queue_num:                ; @fec_enet_get_queue_num
	.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
	ldr	x22, [x0]
	mov	w8, #1
	str	w8, [x2]
	str	w8, [x1]
	cbz	x22, LBB0_9
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x22
	bl	_of_device_is_available
	cbz	w0, LBB0_9
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_of_property_read_u32
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x19
	bl	_of_property_read_u32
	ldr	w2, [x21]
	cmp	w2, #1
	b.lt	LBB0_7
; %bb.3:
Lloh4:
	adrp	x8, _FEC_ENET_MAX_TX_QS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FEC_ENET_MAX_TX_QS@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w2, w8
	b.gt	LBB0_7
; %bb.4:
	ldr	w2, [x19]
	cmp	w2, #1
	b.lt	LBB0_6
; %bb.5:
Lloh7:
	adrp	x8, _FEC_ENET_MAX_RX_QS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FEC_ENET_MAX_RX_QS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w2, w8
	b.le	LBB0_9
LBB0_6:
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
	mov	x21, x19
	b	LBB0_8
LBB0_7:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
LBB0_8:
	mov	w8, #1
	str	w8, [x21]
LBB0_9:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fsl,num-tx-queues"

l_.str.1:                               ; @.str.1
	.asciz	"fsl,num-rx-queues"

	.comm	_FEC_ENET_MAX_TX_QS,4,2         ; @FEC_ENET_MAX_TX_QS
l_.str.2:                               ; @.str.2
	.asciz	"Invalid num_tx(=%d), fall back to 1\n"

	.comm	_FEC_ENET_MAX_RX_QS,4,2         ; @FEC_ENET_MAX_RX_QS
l_.str.3:                               ; @.str.3
	.asciz	"Invalid num_rx(=%d), fall back to 1\n"

	.no_dead_strip	_fec_enet_get_queue_num
.subsections_via_symbols
