	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gswip_gphy_fw_probe
_gswip_gphy_fw_probe:                   ## @gswip_gphy_fw_probe
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r14
	leaq	L_.str(%rip), %rdx
	leaq	-58(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_snprintf
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_devm_clk_get
	movl	%eax, 12(%r13)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	12(%r13), %edi
LBB0_2:
	callq	_PTR_ERR
LBB0_3:
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_of_property_read_u32
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
	leaq	-64(%rbp), %rdx
	movq	%r12, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_14
## %bb.8:
	movl	$128, -64(%rbp)
LBB0_9:
	movq	(%r15), %rax
LBB0_10:
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	%r12, %rdi
	callq	_of_reset_control_array_get_exclusive
	movl	%eax, 4(%r13)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_17
## %bb.11:
	movl	4(%r13), %edi
	callq	_PTR_ERR
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_13:
	movl	4(%r13), %edi
	jmp	LBB0_2
LBB0_14:
	movl	-64(%rbp), %edx
	cmpl	$128, %edx
	je	LBB0_9
## %bb.15:
	cmpl	$129, %edx
	jne	LBB0_18
## %bb.16:
	movq	(%r15), %rax
	addq	$4, %rax
	jmp	LBB0_10
LBB0_17:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_gswip_gphy_fw_load
	jmp	LBB0_3
LBB0_18:
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gphy%d"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to lookup gate clock\n"

L_.str.2:                               ## @.str.2
	.asciz	"reg"

L_.str.3:                               ## @.str.3
	.asciz	"lantiq,gphy-mode"

L_.str.4:                               ## @.str.4
	.asciz	"Unknown GPHY mode %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.5:                               ## @.str.5
	.asciz	"Failed to lookup gphy reset\n"

	.no_dead_strip	_gswip_gphy_fw_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gswip_gphy_fw_probe
_gswip_gphy_fw_probe:                   ; @gswip_gphy_fw_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x20, [x0, #8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #14
	mov	w1, #10
	bl	_snprintf
	add	x1, sp, #14
	mov	x0, x20
	bl	_devm_clk_get
	str	w0, [x19, #12]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w0, [x19, #12]
	bl	_PTR_ERR
	b	LBB0_15
LBB0_2:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	x2, x19
	bl	_of_property_read_u32
	cbnz	w0, LBB0_15
; %bb.3:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #8
	mov	x0, x22
	bl	_of_property_read_u32
	cbz	w0, LBB0_10
; %bb.4:
	mov	w8, #128
	str	w8, [sp, #8]
LBB0_5:
	ldr	x8, [x21]
LBB0_6:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	x0, x22
	bl	_of_reset_control_array_get_exclusive
	str	w0, [x19, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.7:
	ldr	w0, [x19, #4]
	bl	_PTR_ERR
Lloh11:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_9
; %bb.8:
Lloh14:
	adrp	x1, l_.str.5@PAGE
Lloh15:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_9:
	ldr	w0, [x19, #4]
	bl	_PTR_ERR
	b	LBB0_15
LBB0_10:
	ldr	w8, [sp, #8]
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.11:
	cmp	w8, #129
	b.ne	LBB0_14
; %bb.12:
	ldr	x8, [x21]
	add	x8, x8, #4
	b	LBB0_6
LBB0_13:
	mov	x0, x21
	mov	x1, x19
	bl	_gswip_gphy_fw_load
	b	LBB0_15
LBB0_14:
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	ldr	x8, [sp, #24]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gphy%d"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to lookup gate clock\n"

l_.str.2:                               ; @.str.2
	.asciz	"reg"

l_.str.3:                               ; @.str.3
	.asciz	"lantiq,gphy-mode"

l_.str.4:                               ; @.str.4
	.asciz	"Unknown GPHY mode %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.5:                               ; @.str.5
	.asciz	"Failed to lookup gphy reset\n"

	.no_dead_strip	_gswip_gphy_fw_probe
.subsections_via_symbols
