	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mchp23k256_probe
_mchp23k256_probe:                      ## @mchp23k256_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	%r14, 48(%rax)
	movq	%rax, %rdi
	addq	$40, %rdi
	callq	_mutex_init
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_spi_set_drvdata
	movq	%r14, %rdi
	callq	_mchp23k256_set_mode
	testl	%eax, %eax
	jne	LBB0_2
## %bb.4:
	movq	%r14, %rdi
	callq	_dev_get_platdata
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_mchp23k256_caps@GOTPCREL(%rip), %rax
LBB0_6:
	movq	%rax, 32(%rbx)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_mtd_set_of_node
	movq	%r14, 24(%rbx)
	movq	_MTD_RAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_MTD_CAP_RAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	$1, (%rbx)
	movq	32(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_mchp23k256_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_mchp23k256_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	testq	%r15, %r15
	je	LBB0_7
## %bb.8:
	movq	8(%r15), %rsi
	movl	(%r15), %edx
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%esi, %esi
	xorl	%edx, %edx
LBB0_9:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtd_device_register            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mchp23k256_caps,4,2            ## @mchp23k256_caps
	.comm	_MTD_RAM,4,2                    ## @MTD_RAM
	.comm	_MTD_CAP_RAM,4,2                ## @MTD_CAP_RAM
	.comm	_mchp23k256_read,4,2            ## @mchp23k256_read
	.comm	_mchp23k256_write,4,2           ## @mchp23k256_write
	.no_dead_strip	_mchp23k256_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mchp23k256_probe
_mchp23k256_probe:                      ; @mchp23k256_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
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	str	x20, [x0, #48]
	add	x0, x0, #40
	bl	_mutex_init
	mov	x0, x20
	mov	x1, x19
	bl	_spi_set_drvdata
	mov	x0, x20
	bl	_mchp23k256_set_mode
	cbnz	w0, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_dev_get_platdata
	mov	x21, x0
	mov	x0, x20
	bl	_of_device_get_match_data
Lloh3:
	adrp	x8, _mchp23k256_caps@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mchp23k256_caps@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x0, eq
	str	x8, [x19, #32]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mtd_set_of_node
	str	x20, [x19, #24]
Lloh5:
	adrp	x8, _MTD_RAM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MTD_RAM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #20]
Lloh8:
	adrp	x8, _MTD_CAP_RAM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MTD_CAP_RAM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mov	w9, #1
	str	w9, [x19]
	ldr	x9, [x19, #32]
	ldr	w9, [x9]
	stp	w9, w8, [x19, #12]
Lloh11:
	adrp	x8, _mchp23k256_read@GOTPAGE
Lloh12:
	ldr	x8, [x8, _mchp23k256_read@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _mchp23k256_write@GOTPAGE
Lloh15:
	ldr	x9, [x9, _mchp23k256_write@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #4]
	cbz	x21, LBB0_6
; %bb.3:
	ldr	x1, [x21, #8]
	ldr	w2, [x21]
	b	LBB0_7
LBB0_4:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
LBB0_6:
	mov	x1, #0
	mov	w2, #0
LBB0_7:
	mov	x0, x19
	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
	b	_mtd_device_register
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mchp23k256_caps,4,2            ; @mchp23k256_caps
	.comm	_MTD_RAM,4,2                    ; @MTD_RAM
	.comm	_MTD_CAP_RAM,4,2                ; @MTD_CAP_RAM
	.comm	_mchp23k256_read,4,2            ; @mchp23k256_read
	.comm	_mchp23k256_write,4,2           ; @mchp23k256_write
	.no_dead_strip	_mchp23k256_probe
.subsections_via_symbols
