	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rb4xx_cpld_probe
_rb4xx_cpld_probe:                      ## @rb4xx_cpld_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
	leaq	8(%rdi), %r14
	movq	8(%rdi), %r12
	testq	%r12, %r12
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	%rax, %rdi
	addq	$4, %rdi
	callq	_mutex_init
	movq	%rbx, %rdi
	callq	_spi_dev_get
	movl	%eax, (%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dev_set_drvdata
	movq	_SPI_MODE_0@GOTPCREL(%rip), %rax
	movq	_SPI_TX_DUAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movl	$8, 4(%rbx)
	movq	%rbx, %rdi
	callq	_spi_setup
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_7:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_rb4xx_cpld_gpio_init
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_8
LBB0_6:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_dev_set_drvdata
	movq	%r15, %rdi
	callq	_kfree
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_rb4xx_cpld@GOTPCREL(%rip), %rax
	movq	%r15, (%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no platform data\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"no memory for private data\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SPI_MODE_0,4,2                 ## @SPI_MODE_0
	.comm	_SPI_TX_DUAL,4,2                ## @SPI_TX_DUAL
L_.str.2:                               ## @.str.2
	.asciz	"spi_setup failed, err=%d\n"

	.comm	_rb4xx_cpld,8,3                 ## @rb4xx_cpld
	.no_dead_strip	_rb4xx_cpld_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rb4xx_cpld_probe
_rb4xx_cpld_probe:                      ; @rb4xx_cpld_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldr	x22, [x19, #8]!
	cbz	x22, LBB0_4
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w23, #8
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	add	x0, x0, #4
	bl	_mutex_init
	mov	x0, x21
	bl	_spi_dev_get
	str	w0, [x20]
	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_TX_DUAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SPI_TX_DUAL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	stp	w8, w23, [x21]
	mov	x0, x21
	bl	_spi_setup
	cbz	w0, LBB0_7
; %bb.3:
	mov	x21, x0
	str	x21, [sp]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_8
LBB0_4:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
LBB0_7:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_rb4xx_cpld_gpio_init
	mov	x21, x0
	cbz	w0, LBB0_10
LBB0_8:
	mov	x0, x19
	mov	x1, #0
	bl	_dev_set_drvdata
	mov	x0, x20
	bl	_kfree
LBB0_9:
	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
	add	sp, sp, #80
	ret
LBB0_10:
Lloh19:
	adrp	x8, _rb4xx_cpld@GOTPAGE
Lloh20:
	ldr	x8, [x8, _rb4xx_cpld@GOTPAGEOFF]
Lloh21:
	str	x20, [x8]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no platform data\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"no memory for private data\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SPI_MODE_0,4,2                 ; @SPI_MODE_0
	.comm	_SPI_TX_DUAL,4,2                ; @SPI_TX_DUAL
l_.str.2:                               ; @.str.2
	.asciz	"spi_setup failed, err=%d\n"

	.comm	_rb4xx_cpld,8,3                 ; @rb4xx_cpld
	.no_dead_strip	_rb4xx_cpld_probe
.subsections_via_symbols
