	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_eth_mux_setup
_mtk_eth_mux_setup:                     ## @mtk_eth_mux_setup
	.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
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	callq	_MTK_HAS_CAPS
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	8(%r12), %rax
	movl	(%rax), %edi
	movq	_MTK_MUX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MTK_HAS_CAPS
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	_mtk_eth_muxc@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_11
## %bb.4:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r12), %edi
	movq	(%r13), %rax
	movl	16(%rax,%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$24, %r15
	cmpq	%rax, %r14
	jge	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax), %edi
	movq	(%r13), %rax
	movl	(%rax,%r15), %esi
	callq	_MTK_HAS_CAPS
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %rax
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	*8(%rax,%r15)
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_1:
	movl	(%r12), %ebx
	movl	%r14d, %edi
	callq	_mtk_eth_path_name
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"path %s isn't support on the SoC\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MTK_MUX,4,2                    ## @MTK_MUX
	.comm	_mtk_eth_muxc,8,3               ## @mtk_eth_muxc
L_.str.1:                               ## @.str.1
	.asciz	"mux %s isn't present on the SoC\n"

	.no_dead_strip	_mtk_eth_mux_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_eth_mux_setup
_mtk_eth_mux_setup:                     ; @mtk_eth_mux_setup
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
	bl	_MTK_HAS_CAPS
	cbz	x0, LBB0_8
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _MTK_MUX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MTK_MUX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_MTK_HAS_CAPS
	cbz	x0, LBB0_10
; %bb.2:
Lloh3:
	adrp	x22, _mtk_eth_muxc@GOTPAGE
Lloh4:
	ldr	x22, [x22, _mtk_eth_muxc@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.3:
	mov	x23, #0
	mov	x24, #0
Lloh5:
	adrp	x21, l_.str.1@PAGE
Lloh6:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x20]
	ldr	x8, [x22]
	add	x8, x8, x23
	ldr	w2, [x8, #16]
	mov	x1, x21
	bl	_dev_dbg
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	add	x23, x23, #24
	cmp	x24, w0, sxtw
	b.ge	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	ldr	x8, [x22]
	ldr	w1, [x8, x23]
	bl	_MTK_HAS_CAPS
	cbz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22]
	add	x8, x8, x23
	ldr	x8, [x8, #8]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	cbz	w0, LBB0_5
	b	LBB0_10
LBB0_8:
	ldr	w20, [x20]
	mov	x0, x19
	bl	_mtk_eth_path_name
	mov	x2, x0
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"path %s isn't support on the SoC\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MTK_MUX,4,2                    ; @MTK_MUX
	.comm	_mtk_eth_muxc,8,3               ; @mtk_eth_muxc
l_.str.1:                               ; @.str.1
	.asciz	"mux %s isn't present on the SoC\n"

	.no_dead_strip	_mtk_eth_mux_setup
.subsections_via_symbols
