	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdio_mux_iproc_probe
_mdio_mux_iproc_probe:                  ## @mdio_mux_iproc_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	12(%rdi), %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%r13, 8(%rax)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %rbx
	movzwl	(%rax), %eax
	testl	$4095, %eax                     ## imm = 0xFFF
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_info
	movslq	(%rbx), %rax
	andq	$-4096, %rax                    ## imm = 0xF000
	movl	%eax, (%rbx)
	movq	_MDIO_REG_ADDR_SPACE_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%rcx, %rax
	decq	%rax
	movq	%rax, 8(%rbx)
LBB0_4:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 32(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	32(%r14), %rdi
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_7:
	movq	%r13, %rdi
	callq	_devm_mdiobus_alloc
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movq	%rax, %rbx
	movq	%rax, (%r14)
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_ERR_PTR
	cmpq	%rax, %rbx
	je	LBB0_11
## %bb.10:
	movq	(%r14), %rbx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_ERR_PTR
	cmpq	%rax, %rbx
	je	LBB0_11
## %bb.12:
	movq	(%r14), %rdi
	callq	_IS_ERR
	movq	(%r14), %rdi
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_13
LBB0_11:
	movq	$0, (%r14)
	xorl	%edi, %edi
LBB0_13:
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	jmp	LBB0_20
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	16(%r14), %r12
	movq	%r14, 40(%r12)
	leaq	L_.str.4(%rip), %rax
	movq	%rax, (%r12)
	movl	32(%r12), %edi
	movq	_MII_BUS_ID_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	leaq	L_.str.5(%rip), %rdx
	callq	_snprintf
	movq	%r13, 24(%r12)
	movq	_iproc_mdiomux_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movq	_iproc_mdiomux_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movl	$-1, 12(%r12)
	movl	12(%r15), %eax
	movl	%eax, 8(%r12)
	movq	%r12, %rdi
	callq	_mdiobus_register
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	jmp	LBB0_19
LBB0_17:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	8(%r14), %rdi
	movq	16(%r14), %r9
	movl	(%rdi), %esi
	movq	_mdio_mux_iproc_switch_fn@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rcx
	addq	$24, %rcx
	movq	%r14, %r8
	callq	_mdio_mux_init
	testl	%eax, %eax
	je	LBB0_21
## %bb.18:
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_dev_info
	movq	%r12, %rdi
	callq	_mdiobus_unregister
LBB0_19:
	movq	(%r14), %rdi
	callq	_clk_disable_unprepare
	jmp	LBB0_20
LBB0_21:
	movq	%r14, %rdi
	callq	_mdio_mux_iproc_config
	movq	8(%r14), %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fix base address in dt-blob\n"

	.comm	_MDIO_REG_ADDR_SPACE_SIZE,8,3   ## @MDIO_REG_ADDR_SPACE_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"failed to ioremap register\n"

L_.str.2:                               ## @.str.2
	.asciz	"mdiomux bus alloc failed\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"failed to enable core clk\n"

L_.str.4:                               ## @.str.4
	.asciz	"iProc MDIO mux bus"

	.comm	_MII_BUS_ID_SIZE,4,2            ## @MII_BUS_ID_SIZE
L_.str.5:                               ## @.str.5
	.asciz	"%s-%d"

	.comm	_iproc_mdiomux_read,4,2         ## @iproc_mdiomux_read
	.comm	_iproc_mdiomux_write,4,2        ## @iproc_mdiomux_write
L_.str.6:                               ## @.str.6
	.asciz	"mdiomux registration failed\n"

	.comm	_mdio_mux_iproc_switch_fn,4,2   ## @mdio_mux_iproc_switch_fn
L_.str.7:                               ## @.str.7
	.asciz	"mdiomux initialization failed\n"

L_.str.8:                               ## @.str.8
	.asciz	"iProc mdiomux registered\n"

	.no_dead_strip	_mdio_mux_iproc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mdio_mux_iproc_probe
_mdio_mux_iproc_probe:                  ; @mdio_mux_iproc_probe
	.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	x21, x0
	add	x20, x0, #12
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_14
; %bb.1:
	mov	x19, x0
	str	x20, [x0, #8]
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_platform_get_resource
	mov	x22, x0
	ldrh	w8, [x0]
	tst	w8, #0xfff
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	ldrsw	x8, [x22]
	and	x8, x8, #0xfffffffffffff000
	str	w8, [x22]
Lloh8:
	adrp	x9, _MDIO_REG_ADDR_SPACE_SIZE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MDIO_REG_ADDR_SPACE_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x8, x8, x9
	sub	x8, x8, #1
	str	x8, [x22, #8]
LBB0_3:
	mov	x0, x20
	mov	x1, x22
	bl	_devm_ioremap_resource
	str	x0, [x19, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.4:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #32]
LBB0_5:
	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
	b	_PTR_ERR
LBB0_6:
	mov	x0, x20
	bl	_devm_mdiobus_alloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_13
; %bb.7:
	mov	x0, x20
	mov	x1, #0
	bl	_devm_clk_get
	mov	x22, x0
	str	x0, [x19]
Lloh13:
	adrp	x8, _ENOENT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	cmp	x22, x0
	b.eq	LBB0_10
; %bb.8:
	ldr	x22, [x19]
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	cmp	x22, x0
	b.eq	LBB0_10
; %bb.9:
	ldr	x0, [x19]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19]
	cbnz	x8, LBB0_5
	b	LBB0_11
LBB0_10:
	mov	x0, #0
	str	xzr, [x19]
LBB0_11:
	bl	_clk_prepare_enable
	cbz	w0, LBB0_16
; %bb.12:
	mov	x23, x0
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_15
LBB0_13:
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_14:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_15:
	mov	x0, x23
	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
LBB0_16:
	ldr	x22, [x19, #16]
	str	x19, [x22, #40]
Lloh26:
	adrp	x8, l_.str.4@PAGE
Lloh27:
	add	x8, x8, l_.str.4@PAGEOFF
	str	x8, [x22]
	ldr	w0, [x22, #32]
Lloh28:
	adrp	x8, _MII_BUS_ID_SIZE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MII_BUS_ID_SIZE@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	ldr	x3, [x21]
	ldr	w4, [x21, #8]
Lloh31:
	adrp	x2, l_.str.5@PAGE
Lloh32:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_snprintf
	str	x20, [x22, #24]
Lloh33:
	adrp	x8, _iproc_mdiomux_read@GOTPAGE
Lloh34:
	ldr	x8, [x8, _iproc_mdiomux_read@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	adrp	x9, _iproc_mdiomux_write@GOTPAGE
Lloh37:
	ldr	x9, [x9, _iproc_mdiomux_write@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #16]
	mov	w8, #-1
	ldr	w9, [x21, #12]
	stp	w9, w8, [x22, #8]
	mov	x0, x22
	bl	_mdiobus_register
	cbz	w0, LBB0_18
; %bb.17:
	mov	x23, x0
Lloh39:
	adrp	x1, l_.str.6@PAGE
Lloh40:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_20
LBB0_18:
	mov	x0, x21
	mov	x1, x19
	bl	_platform_set_drvdata
	ldp	x0, x5, [x19, #8]
	ldr	w1, [x0]
Lloh41:
	adrp	x8, _mdio_mux_iproc_switch_fn@GOTPAGE
Lloh42:
	ldr	x8, [x8, _mdio_mux_iproc_switch_fn@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
	add	x3, x19, #24
	mov	x4, x19
	bl	_mdio_mux_init
	mov	x23, x0
	cbz	w0, LBB0_21
; %bb.19:
	ldr	x0, [x19, #8]
Lloh44:
	adrp	x1, l_.str.7@PAGE
Lloh45:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_info
	mov	x0, x22
	bl	_mdiobus_unregister
LBB0_20:
	ldr	x0, [x19]
	bl	_clk_disable_unprepare
	b	LBB0_15
LBB0_21:
	mov	x0, x19
	bl	_mdio_mux_iproc_config
	ldr	x0, [x19, #8]
Lloh46:
	adrp	x1, l_.str.8@PAGE
Lloh47:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_dev_info
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fix base address in dt-blob\n"

	.comm	_MDIO_REG_ADDR_SPACE_SIZE,8,3   ; @MDIO_REG_ADDR_SPACE_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"failed to ioremap register\n"

l_.str.2:                               ; @.str.2
	.asciz	"mdiomux bus alloc failed\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"failed to enable core clk\n"

l_.str.4:                               ; @.str.4
	.asciz	"iProc MDIO mux bus"

	.comm	_MII_BUS_ID_SIZE,4,2            ; @MII_BUS_ID_SIZE
l_.str.5:                               ; @.str.5
	.asciz	"%s-%d"

	.comm	_iproc_mdiomux_read,4,2         ; @iproc_mdiomux_read
	.comm	_iproc_mdiomux_write,4,2        ; @iproc_mdiomux_write
l_.str.6:                               ; @.str.6
	.asciz	"mdiomux registration failed\n"

	.comm	_mdio_mux_iproc_switch_fn,4,2   ; @mdio_mux_iproc_switch_fn
l_.str.7:                               ; @.str.7
	.asciz	"mdiomux initialization failed\n"

l_.str.8:                               ; @.str.8
	.asciz	"iProc mdiomux registered\n"

	.no_dead_strip	_mdio_mux_iproc_probe
.subsections_via_symbols
