	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r12
	testq	%r12, %r12
	je	LBB0_1
## %bb.3:
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdx
	movl	$-2147090432, %edi              ## imm = 0x80060000
	movl	$96, %esi
	callq	_request_mem_region
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_mcp_host_alloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r15
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movq	_mcp_sa11x0@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r15)
	movl	(%r12), %eax
	movl	%eax, (%r15)
	movq	_DMA_Ser4MCP0Rd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	_DMA_Ser4MCP0Wr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_DMA_Ser4MCP1Rd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	_DMA_Ser4MCP1Wr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_machine_is_assabet
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_ASSABET_BCR_CODEC_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ASSABET_BCR_set
LBB0_9:
	movq	_PPC_RXD4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	notl	%ecx
	movq	_PPDR@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ecx
	movq	_PPC_TXD4@GOTPCREL(%rip), %rsi
	movq	_PPC_SCLK@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	(%rsi), %edi
	movq	_PPC_SFRM@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edi
	orl	%edi, %ecx
	movq	_PSDR@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	movl	%ecx, (%rdx)
	notl	%edi
	andl	%edi, %eax
	movl	%eax, (%rsi)
	movq	_PPSR@GOTPCREL(%rip), %rax
	andl	%edi, (%rax)
	movq	_Ser4MCSR@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
	movl	8(%r12), %eax
	movq	_Ser4MCCR1@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$32639, %eax                    ## imm = 0x7F7F
	orl	4(%r12), %eax
	movq	_Ser4MCCR0@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	(%r15), %ecx
	leal	191999999(%rcx), %eax
	cltd
	idivl	%ecx
	movl	%eax, 4(%r15)
	movq	%r15, %rdi
	callq	_mcp_host_register
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_10
	jmp	LBB0_11
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_10:
	movl	$-2147090432, %edi              ## imm = 0x80060000
	movl	$96, %esi
	callq	_release_mem_region
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_set_drvdata
	movl	%r15d, %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sa11x0-mcp"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_mcp_sa11x0,4,2                 ## @mcp_sa11x0
	.comm	_DMA_Ser4MCP0Rd,4,2             ## @DMA_Ser4MCP0Rd
	.comm	_DMA_Ser4MCP0Wr,4,2             ## @DMA_Ser4MCP0Wr
	.comm	_DMA_Ser4MCP1Rd,4,2             ## @DMA_Ser4MCP1Rd
	.comm	_DMA_Ser4MCP1Wr,4,2             ## @DMA_Ser4MCP1Wr
	.comm	_ASSABET_BCR_CODEC_RST,4,2      ## @ASSABET_BCR_CODEC_RST
	.comm	_PPC_RXD4,4,2                   ## @PPC_RXD4
	.comm	_PPDR,4,2                       ## @PPDR
	.comm	_PPC_TXD4,4,2                   ## @PPC_TXD4
	.comm	_PPC_SCLK,4,2                   ## @PPC_SCLK
	.comm	_PPC_SFRM,4,2                   ## @PPC_SFRM
	.comm	_PSDR,4,2                       ## @PSDR
	.comm	_PPSR,4,2                       ## @PPSR
	.comm	_Ser4MCSR,4,2                   ## @Ser4MCSR
	.comm	_Ser4MCCR1,4,2                  ## @Ser4MCCR1
	.comm	_Ser4MCCR0,4,2                  ## @Ser4MCCR0
	.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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, [x0]
	cbz	x21, LBB0_6
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #-2147090432
	mov	w1, #96
	bl	_request_mem_region
	cbz	w0, LBB0_7
; %bb.2:
	mov	x0, x19
	mov	w1, #4
	bl	_mcp_host_alloc
	cbz	x0, LBB0_9
; %bb.3:
	mov	x20, x0
Lloh2:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x0, #32]
Lloh5:
	adrp	x8, _mcp_sa11x0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mcp_sa11x0@GOTPAGEOFF]
	str	x8, [x0, #24]
	ldr	w8, [x21]
	str	w8, [x0]
Lloh7:
	adrp	x8, _DMA_Ser4MCP0Rd@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DMA_Ser4MCP0Rd@GOTPAGEOFF]
Lloh9:
	adrp	x9, _DMA_Ser4MCP0Wr@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DMA_Ser4MCP0Wr@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #16]
Lloh13:
	adrp	x8, _DMA_Ser4MCP1Rd@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DMA_Ser4MCP1Rd@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _DMA_Ser4MCP1Wr@GOTPAGE
Lloh17:
	ldr	x9, [x9, _DMA_Ser4MCP1Wr@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	bl	_machine_is_assabet
	cbz	x0, LBB0_5
; %bb.4:
Lloh19:
	adrp	x8, _ASSABET_BCR_CODEC_RST@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ASSABET_BCR_CODEC_RST@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_ASSABET_BCR_set
LBB0_5:
Lloh22:
	adrp	x8, _PPC_RXD4@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PPC_RXD4@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _PPDR@GOTPAGE
Lloh26:
	ldr	x9, [x9, _PPDR@GOTPAGEOFF]
	ldr	w10, [x9]
Lloh27:
	adrp	x11, _PPC_TXD4@GOTPAGE
Lloh28:
	ldr	x11, [x11, _PPC_TXD4@GOTPAGEOFF]
	bic	w10, w10, w8
Lloh29:
	ldr	w11, [x11]
Lloh30:
	adrp	x12, _PPC_SCLK@GOTPAGE
Lloh31:
	ldr	x12, [x12, _PPC_SCLK@GOTPAGEOFF]
Lloh32:
	ldr	w12, [x12]
	orr	w11, w12, w11
Lloh33:
	adrp	x12, _PPC_SFRM@GOTPAGE
Lloh34:
	ldr	x12, [x12, _PPC_SFRM@GOTPAGEOFF]
Lloh35:
	ldr	w12, [x12]
	orr	w11, w11, w12
	orr	w10, w11, w10
	str	w10, [x9]
Lloh36:
	adrp	x9, _PSDR@GOTPAGE
Lloh37:
	ldr	x9, [x9, _PSDR@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	bic	w8, w8, w11
	str	w8, [x9]
Lloh38:
	adrp	x8, _PPSR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _PPSR@GOTPAGEOFF]
	ldr	w9, [x8]
	bic	w9, w9, w11
Lloh40:
	adrp	x10, _Ser4MCSR@GOTPAGE
Lloh41:
	ldr	x10, [x10, _Ser4MCSR@GOTPAGEOFF]
	str	w9, [x8]
	mov	w8, #-1
Lloh42:
	str	w8, [x10]
Lloh43:
	adrp	x8, _Ser4MCCR1@GOTPAGE
Lloh44:
	ldr	x8, [x8, _Ser4MCCR1@GOTPAGEOFF]
	ldp	w10, w9, [x21, #4]
Lloh45:
	str	w9, [x8]
	mov	w8, #32639
	orr	w8, w10, w8
Lloh46:
	adrp	x9, _Ser4MCCR0@GOTPAGE
Lloh47:
	ldr	x9, [x9, _Ser4MCCR0@GOTPAGEOFF]
Lloh48:
	str	w8, [x9]
	ldr	w8, [x20]
	mov	w9, #45055
	movk	w9, #2929, lsl #16
	add	w9, w8, w9
	sdiv	w8, w9, w8
	str	w8, [x20, #4]
	mov	x0, x20
	bl	_mcp_host_register
	mov	x20, x0
	cbnz	w0, LBB0_10
	b	LBB0_11
LBB0_6:
Lloh49:
	adrp	x8, _ENODEV@GOTPAGE
Lloh50:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh51:
	adrp	x8, _EBUSY@GOTPAGE
Lloh52:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_11
LBB0_9:
Lloh53:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh54:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_10:
	mov	w0, #-2147090432
	mov	w1, #96
	bl	_release_mem_region
	mov	x0, x19
	mov	x1, #0
	bl	_platform_set_drvdata
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotStr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotStr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sa11x0-mcp"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_mcp_sa11x0,4,2                 ; @mcp_sa11x0
	.comm	_DMA_Ser4MCP0Rd,4,2             ; @DMA_Ser4MCP0Rd
	.comm	_DMA_Ser4MCP0Wr,4,2             ; @DMA_Ser4MCP0Wr
	.comm	_DMA_Ser4MCP1Rd,4,2             ; @DMA_Ser4MCP1Rd
	.comm	_DMA_Ser4MCP1Wr,4,2             ; @DMA_Ser4MCP1Wr
	.comm	_ASSABET_BCR_CODEC_RST,4,2      ; @ASSABET_BCR_CODEC_RST
	.comm	_PPC_RXD4,4,2                   ; @PPC_RXD4
	.comm	_PPDR,4,2                       ; @PPDR
	.comm	_PPC_TXD4,4,2                   ; @PPC_TXD4
	.comm	_PPC_SCLK,4,2                   ; @PPC_SCLK
	.comm	_PPC_SFRM,4,2                   ; @PPC_SFRM
	.comm	_PSDR,4,2                       ; @PSDR
	.comm	_PPSR,4,2                       ; @PPSR
	.comm	_Ser4MCSR,4,2                   ; @Ser4MCSR
	.comm	_Ser4MCCR1,4,2                  ; @Ser4MCCR1
	.comm	_Ser4MCCR0,4,2                  ; @Ser4MCCR0
	.no_dead_strip	_mcp_sa11x0_probe
.subsections_via_symbols
