	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcp_sa11x0_probe
_mcp_sa11x0_probe:                      ## @mcp_sa11x0_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	%rdi, %r15
	callq	_dev_get_platdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %rbx
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_platform_get_resource
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %r13d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_resource_size
	movq	_DRIVER_NAME@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_request_mem_region
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %r13d
	callq	_resource_size
	movl	(%r14), %edx
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_request_mem_region
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_mcp_host_alloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %rbx
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_mcp_sa11x0@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movl	(%r12), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_priv
	movq	%rax, %r14
	movl	$32639, %eax                    ## imm = 0x7F7F
	orl	4(%r12), %eax
	movl	%eax, (%r14)
	movl	8(%r12), %eax
	movl	%eax, 4(%r14)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %r13d
	callq	_resource_size
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_ioremap
	movq	%rax, 8(%r14)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %r13d
	callq	_resource_size
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_ioremap
	movq	%rax, 16(%r14)
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	cmpq	$0, 8(%r14)
	je	LBB0_14
## %bb.13:
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_MCSR
	movl	$-1, %edi
	movl	%eax, %esi
	callq	_writel_relaxed
	movq	%rbx, %r14
	movl	4(%r15), %ebx
	movq	%r15, %rdi
	callq	_MCCR1
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel_relaxed
	movl	(%r15), %ebx
	movq	%r15, %rdi
	callq	_MCCR0
	movl	%ebx, %edi
	movq	%r14, %rbx
	movl	%eax, %esi
	callq	_writel_relaxed
	movl	(%r14), %ecx
	leal	191999999(%rcx), %eax
	cltd
	idivl	%ecx
	movl	%eax, 4(%r14)
	movl	12(%r12), %esi
	movq	%r14, %rdi
	callq	_mcp_host_add
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:
	movl	%eax, %r13d
	movq	16(%r15), %rax
	jmp	LBB0_18
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_5:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_21
LBB0_7:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_21
LBB0_9:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_20
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	subl	(%rcx), %r13d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_18:
	movq	%rax, %rdi
	callq	_iounmap
	movq	8(%r15), %rdi
	callq	_iounmap
	movq	%rbx, %rdi
	callq	_mcp_host_free
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_19:
	movl	(%rdi), %r14d
	callq	_resource_size
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_release_mem_region
LBB0_20:
	movl	(%rbx), %r14d
	movq	%rbx, %rdi
	callq	_resource_size
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_release_mem_region
LBB0_21:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	xorl	%r13d, %r13d
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_DRIVER_NAME,4,2                ## @DRIVER_NAME
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_mcp_sa11x0,4,2                 ## @mcp_sa11x0
	.no_dead_strip	_mcp_sa11x0_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcp_sa11x0_probe
_mcp_sa11x0_probe:                      ; @mcp_sa11x0_probe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x0
	bl	_dev_get_platdata
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x20, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x20, [x20, _IORESOURCE_MEM@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x23
	mov	w2, #0
	bl	_platform_get_resource
	mov	x19, x0
	ldr	w1, [x20]
	mov	x0, x23
	mov	w2, #1
	bl	_platform_get_resource
	cmp	x19, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _ENXIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_12
LBB0_3:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_12
LBB0_4:
	mov	x20, x0
	ldr	w22, [x19]
	mov	x0, x19
	bl	_resource_size
	mov	x1, x0
Lloh6:
	adrp	x24, _DRIVER_NAME@GOTPAGE
Lloh7:
	ldr	x24, [x24, _DRIVER_NAME@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x22
	bl	_request_mem_region
	cbz	w0, LBB0_11
; %bb.5:
	ldr	w22, [x20]
	mov	x0, x20
	bl	_resource_size
	mov	x1, x0
	ldr	w2, [x24]
	mov	x0, x22
	bl	_request_mem_region
	cbz	w0, LBB0_14
; %bb.6:
	mov	x0, x23
	mov	w1, #24
	bl	_mcp_host_alloc
	cbz	x0, LBB0_15
; %bb.7:
	mov	x22, x0
Lloh8:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x0, #16]
Lloh11:
	adrp	x8, _mcp_sa11x0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _mcp_sa11x0@GOTPAGEOFF]
	str	x8, [x0, #8]
	ldr	w8, [x21]
	str	w8, [x0]
	bl	_priv
	mov	x24, x0
	mov	w8, #32639
	ldp	w9, w10, [x21, #4]
	orr	w8, w9, w8
	stp	w8, w10, [x0]
	ldr	w25, [x19]
	mov	x0, x19
	bl	_resource_size
	mov	x1, x0
	mov	x0, x25
	bl	_ioremap
	str	x0, [x24, #8]
	ldr	w25, [x20]
	mov	x0, x20
	bl	_resource_size
	mov	x1, x0
	mov	x0, x25
	bl	_ioremap
	str	x0, [x24, #16]
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_16
; %bb.8:
	cbz	x0, LBB0_16
; %bb.9:
	mov	x0, x23
	mov	x1, x22
	bl	_platform_set_drvdata
	mov	x0, x24
	bl	_MCSR
	mov	x1, x0
	mov	w0, #-1
	bl	_writel_relaxed
	ldr	w23, [x24, #4]
	mov	x0, x24
	bl	_MCCR1
	mov	x1, x0
	mov	x0, x23
	bl	_writel_relaxed
	ldr	w23, [x24]
	mov	x0, x24
	bl	_MCCR0
	mov	x1, x0
	mov	x0, x23
	bl	_writel_relaxed
	ldr	w8, [x22]
	mov	w9, #45055
	movk	w9, #2929, lsl #16
	add	w9, w8, w9
	sdiv	w8, w9, w8
	str	w8, [x22, #4]
	ldr	w1, [x21, #12]
	mov	x0, x22
	bl	_mcp_host_add
	mov	x21, x0
	cbz	w0, LBB0_13
; %bb.10:
	ldr	x0, [x24, #16]
	b	LBB0_17
LBB0_11:
Lloh13:
	adrp	x8, _EBUSY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_13:
	mov	x0, x21
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh15:
	adrp	x8, _EBUSY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_19
LBB0_15:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_18
LBB0_16:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_17:
	bl	_iounmap
	ldr	x0, [x24, #8]
	bl	_iounmap
	mov	x0, x22
	bl	_mcp_host_free
LBB0_18:
	ldr	w22, [x20]
	mov	x0, x20
	bl	_resource_size
	mov	x1, x0
	mov	x0, x22
	bl	_release_mem_region
LBB0_19:
	ldr	w20, [x19]
	mov	x0, x19
	bl	_resource_size
	mov	x1, x0
	mov	x0, x20
	bl	_release_mem_region
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_DRIVER_NAME,4,2                ; @DRIVER_NAME
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_mcp_sa11x0,4,2                 ; @mcp_sa11x0
	.no_dead_strip	_mcp_sa11x0_probe
.subsections_via_symbols
