	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32mp1_set_mode
_stm32mp1_set_mode:                     ## @stm32mp1_set_mode
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %esi
	leal	-128(%rsi), %eax
	cmpl	$6, %eax
	ja	LBB0_11
## %bb.1:
	movq	8(%rdi), %rbx
	movq	24(%rbx), %r14
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:
	movq	_SYSCFG_PMCR_ETH_SEL_RGMII@GOTPCREL(%rip), %rax
	movl	12(%rbx), %r15d
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.9:
	movq	_SYSCFG_PMCR_ETH_CLK_SEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
LBB0_10:
	orl	(%rax), %r15d
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str.4(%rip), %rdi
	xorl	%ebx, %ebx
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_SYSCFG_PMCR_ETH_SEL_MII@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_13
LBB0_2:
	movq	_SYSCFG_PMCR_ETH_SEL_GMII@GOTPCREL(%rip), %rax
	movl	12(%rbx), %r15d
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.3:
	movq	_SYSCFG_PMCR_ETH_CLK_SEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
LBB0_4:
	orl	(%rax), %r15d
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_13
LBB0_5:
	movq	_SYSCFG_PMCR_ETH_SEL_RMII@GOTPCREL(%rip), %rax
	movl	16(%rbx), %r15d
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.6:
	movq	_SYSCFG_PMCR_ETH_REF_CLK_SEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
LBB0_7:
	orl	(%rax), %r15d
	leaq	L_.str.2(%rip), %rdi
LBB0_13:
	xorl	%eax, %eax
	callq	_pr_debug
	movl	8(%rbx), %edi
	movq	_SYSCFG_PMCCLRR_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	movq	(%rbx), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	movl	8(%rbx), %edi
	movq	(%rbx), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	movl	%r15d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_12
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_SYSCFG_PMCR_ETH_SEL_MII,4,2    ## @SYSCFG_PMCR_ETH_SEL_MII
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SYSCFG init : PHY_INTERFACE_MODE_MII\n"

	.comm	_SYSCFG_PMCR_ETH_SEL_GMII,4,2   ## @SYSCFG_PMCR_ETH_SEL_GMII
	.comm	_SYSCFG_PMCR_ETH_CLK_SEL,4,2    ## @SYSCFG_PMCR_ETH_CLK_SEL
L_.str.1:                               ## @.str.1
	.asciz	"SYSCFG init : PHY_INTERFACE_MODE_GMII\n"

	.comm	_SYSCFG_PMCR_ETH_SEL_RMII,4,2   ## @SYSCFG_PMCR_ETH_SEL_RMII
	.comm	_SYSCFG_PMCR_ETH_REF_CLK_SEL,4,2 ## @SYSCFG_PMCR_ETH_REF_CLK_SEL
L_.str.2:                               ## @.str.2
	.asciz	"SYSCFG init : PHY_INTERFACE_MODE_RMII\n"

	.comm	_SYSCFG_PMCR_ETH_SEL_RGMII,4,2  ## @SYSCFG_PMCR_ETH_SEL_RGMII
L_.str.3:                               ## @.str.3
	.asciz	"SYSCFG init : PHY_INTERFACE_MODE_RGMII\n"

L_.str.4:                               ## @.str.4
	.asciz	"SYSCFG init :  Do not manage %d interface\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SYSCFG_PMCCLRR_OFFSET,8,3      ## @SYSCFG_PMCCLRR_OFFSET
	.no_dead_strip	_stm32mp1_set_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32mp1_set_mode
_stm32mp1_set_mode:                     ; @stm32mp1_set_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	w9, [x0]
	sub	w8, w9, #128
	cmp	w8, #6
	b.hi	LBB0_3
; %bb.1:
	ldr	x21, [x0, #8]
	ldr	x19, [x21, #24]
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _SYSCFG_PMCR_ETH_SEL_RGMII@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SYSCFG_PMCR_ETH_SEL_RGMII@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x21, #12]
Lloh5:
	adrp	x10, _SYSCFG_PMCR_ETH_CLK_SEL@GOTPAGE
Lloh6:
	ldr	x10, [x10, _SYSCFG_PMCR_ETH_CLK_SEL@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	w9, #0
	csel	w9, wzr, w10, eq
	orr	w20, w9, w8
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_3:
	str	x9, [sp]
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_debug
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	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
	add	sp, sp, #64
	ret
LBB0_4:
Lloh15:
	adrp	x8, _SYSCFG_PMCR_ETH_SEL_MII@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SYSCFG_PMCR_ETH_SEL_MII@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh20:
	adrp	x8, _SYSCFG_PMCR_ETH_SEL_GMII@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SYSCFG_PMCR_ETH_SEL_GMII@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x21, #12]
Lloh23:
	adrp	x10, _SYSCFG_PMCR_ETH_CLK_SEL@GOTPAGE
Lloh24:
	ldr	x10, [x10, _SYSCFG_PMCR_ETH_CLK_SEL@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	cmp	w9, #0
	csel	w9, wzr, w10, eq
	orr	w20, w9, w8
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh28:
	adrp	x8, _SYSCFG_PMCR_ETH_SEL_RMII@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SYSCFG_PMCR_ETH_SEL_RMII@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	ldr	w9, [x21, #16]
Lloh31:
	adrp	x10, _SYSCFG_PMCR_ETH_REF_CLK_SEL@GOTPAGE
Lloh32:
	ldr	x10, [x10, _SYSCFG_PMCR_ETH_REF_CLK_SEL@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
	cmp	w9, #0
	csel	w9, wzr, w10, eq
	orr	w20, w9, w8
Lloh34:
	adrp	x0, l_.str.2@PAGE
Lloh35:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	bl	_pr_debug
	ldr	w0, [x21, #8]
Lloh36:
	adrp	x8, _SYSCFG_PMCCLRR_OFFSET@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SYSCFG_PMCCLRR_OFFSET@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	add	x1, x8, x19
	ldr	x8, [x21]
	ldr	w2, [x8]
	bl	_regmap_write
	ldr	w0, [x21, #8]
	ldr	x8, [x21]
	ldr	w2, [x8]
	mov	x1, x19
	mov	x3, x20
	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
	add	sp, sp, #64
	b	_regmap_update_bits
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- End function
	.comm	_SYSCFG_PMCR_ETH_SEL_MII,4,2    ; @SYSCFG_PMCR_ETH_SEL_MII
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SYSCFG init : PHY_INTERFACE_MODE_MII\n"

	.comm	_SYSCFG_PMCR_ETH_SEL_GMII,4,2   ; @SYSCFG_PMCR_ETH_SEL_GMII
	.comm	_SYSCFG_PMCR_ETH_CLK_SEL,4,2    ; @SYSCFG_PMCR_ETH_CLK_SEL
l_.str.1:                               ; @.str.1
	.asciz	"SYSCFG init : PHY_INTERFACE_MODE_GMII\n"

	.comm	_SYSCFG_PMCR_ETH_SEL_RMII,4,2   ; @SYSCFG_PMCR_ETH_SEL_RMII
	.comm	_SYSCFG_PMCR_ETH_REF_CLK_SEL,4,2 ; @SYSCFG_PMCR_ETH_REF_CLK_SEL
l_.str.2:                               ; @.str.2
	.asciz	"SYSCFG init : PHY_INTERFACE_MODE_RMII\n"

	.comm	_SYSCFG_PMCR_ETH_SEL_RGMII,4,2  ; @SYSCFG_PMCR_ETH_SEL_RGMII
l_.str.3:                               ; @.str.3
	.asciz	"SYSCFG init : PHY_INTERFACE_MODE_RGMII\n"

l_.str.4:                               ; @.str.4
	.asciz	"SYSCFG init :  Do not manage %d interface\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SYSCFG_PMCCLRR_OFFSET,8,3      ; @SYSCFG_PMCCLRR_OFFSET
	.no_dead_strip	_stm32mp1_set_mode
.subsections_via_symbols
