	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mc13xxx_spi_probe
_mc13xxx_spi_probe:                     ## @mc13xxx_spi_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
	leaq	8(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_dev_set_drvdata
	movq	_SPI_MODE_0@GOTPCREL(%rip), %rax
	movq	_SPI_CS_HIGH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r12)
	movl	16(%r12), %eax
	movl	%eax, 12(%r15)
	movl	4(%r12), %eax
	testl	%eax, %eax
	movl	$26000000, %ecx                 ## imm = 0x18CBA80
	cmovnel	%eax, %ecx
	movl	%ecx, 4(%r12)
	movq	%r12, %rdi
	callq	_spi_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	_regmap_mc13xxx_bus@GOTPCREL(%rip), %rsi
	movq	_mc13xxx_regmap_spi_config@GOTPCREL(%rip), %rcx
	movq	%r14, %rdi
	movq	%r14, %rdx
	callq	_devm_regmap_init
	movl	%eax, 8(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	8(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpq	$0, (%r14)
	je	LBB0_8
## %bb.7:
	movq	_mc13xxx_dt_ids@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_of_match_device
	jmp	LBB0_9
LBB0_8:
	movq	%r12, %rdi
	callq	_spi_get_device_id
LBB0_9:
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mc13xxx_common_init            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SPI_MODE_0,4,2                 ## @SPI_MODE_0
	.comm	_SPI_CS_HIGH,4,2                ## @SPI_CS_HIGH
	.comm	_regmap_mc13xxx_bus,4,2         ## @regmap_mc13xxx_bus
	.comm	_mc13xxx_regmap_spi_config,4,2  ## @mc13xxx_regmap_spi_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to initialize regmap: %d\n"

	.comm	_mc13xxx_dt_ids,4,2             ## @mc13xxx_dt_ids
	.no_dead_strip	_mc13xxx_spi_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mc13xxx_spi_probe
_mc13xxx_spi_probe:                     ; @mc13xxx_spi_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	x21, x0
	add	x19, x0, #8
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_dev_set_drvdata
Lloh3:
	adrp	x8, _SPI_MODE_0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPI_MODE_0@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _SPI_CS_HIGH@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SPI_CS_HIGH@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x21, #16]
	str	w9, [x20, #12]
	ldr	w9, [x21, #4]
	mov	w10, #47744
	movk	w10, #396, lsl #16
	cmp	w9, #0
	csel	w9, w10, w9, eq
	stp	w8, w9, [x21]
	mov	x0, x21
	bl	_spi_setup
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.2:
Lloh9:
	adrp	x1, _regmap_mc13xxx_bus@GOTPAGE
Lloh10:
	ldr	x1, [x1, _regmap_mc13xxx_bus@GOTPAGEOFF]
Lloh11:
	adrp	x3, _mc13xxx_regmap_spi_config@GOTPAGE
Lloh12:
	ldr	x3, [x3, _mc13xxx_regmap_spi_config@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, x19
	bl	_devm_regmap_init
	str	w0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w0, [x20, #8]
	bl	_PTR_ERR
	mov	x22, x0
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_dev_err
	b	LBB0_5
LBB0_4:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x22
	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:
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.7:
Lloh18:
	adrp	x8, _mc13xxx_dt_ids@GOTPAGE
Lloh19:
	ldr	x8, [x8, _mc13xxx_dt_ids@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_of_match_device
	b	LBB0_9
LBB0_8:
	mov	x0, x21
	bl	_spi_get_device_id
LBB0_9:
	ldr	x8, [x0]
	str	x8, [x20]
	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	_mc13xxx_common_init
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SPI_MODE_0,4,2                 ; @SPI_MODE_0
	.comm	_SPI_CS_HIGH,4,2                ; @SPI_CS_HIGH
	.comm	_regmap_mc13xxx_bus,4,2         ; @regmap_mc13xxx_bus
	.comm	_mc13xxx_regmap_spi_config,4,2  ; @mc13xxx_regmap_spi_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to initialize regmap: %d\n"

	.comm	_mc13xxx_dt_ids,4,2             ; @mc13xxx_dt_ids
	.no_dead_strip	_mc13xxx_spi_probe
.subsections_via_symbols
