	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpsw_phy_sel                   ## -- Begin function cpsw_phy_sel
	.p2align	4, 0x90
_cpsw_phy_sel:                          ## @cpsw_phy_sel
	.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	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_of_get_child_by_name
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_6
LBB0_2:
	movq	_match@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_platform_bus_type@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	movq	%r13, %rdx
	callq	_bus_find_device
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	*(%rax)
	movq	%rbx, %rdi
	callq	_put_device
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
	xorl	%edi, %edi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_5:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_of_node_put                    ## TAILCALL
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cpsw-phy-sel"

L_.str.1:                               ## @.str.1
	.asciz	"Phy mode driver DT not found\n"

	.comm	_platform_bus_type,4,2          ## @platform_bus_type
	.comm	_match,4,2                      ## @match
L_.str.2:                               ## @.str.2
	.asciz	"unable to find platform device for %pOF\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpsw_phy_sel                   ; -- Begin function cpsw_phy_sel
	.p2align	2
_cpsw_phy_sel:                          ; @cpsw_phy_sel
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	bl	_of_parse_phandle
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x22]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_of_get_child_by_name
	mov	x20, x0
	cbz	x0, LBB0_6
LBB0_2:
Lloh4:
	adrp	x8, _match@GOTPAGE
Lloh5:
	ldr	x8, [x8, _match@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
Lloh7:
	adrp	x0, _platform_bus_type@GOTPAGE
Lloh8:
	ldr	x0, [x0, _platform_bus_type@GOTPAGEOFF]
	mov	x1, #0
	mov	x2, x20
	bl	_bus_find_device
	cbz	x0, LBB0_4
; %bb.3:
	mov	x22, x0
	bl	_dev_get_drvdata
	ldr	x8, [x0]
	mov	x1, x21
	mov	x2, x19
	blr	x8
	mov	x0, x22
	bl	_put_device
	b	LBB0_5
LBB0_4:
	str	x20, [sp]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
LBB0_5:
	mov	x0, 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	_of_node_put
LBB0_6:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	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	_dev_err
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cpsw-phy-sel"

l_.str.1:                               ; @.str.1
	.asciz	"Phy mode driver DT not found\n"

	.comm	_platform_bus_type,4,2          ; @platform_bus_type
	.comm	_match,4,2                      ; @match
l_.str.2:                               ; @.str.2
	.asciz	"unable to find platform device for %pOF\n"

.subsections_via_symbols
