	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpcap_probe
_cpcap_probe:                           ## @cpcap_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_cpcap_of_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_of_match_ptr
	leaq	8(%r12), %r14
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r15
	movq	%r12, (%rax)
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_spi_set_drvdata
	movl	$16, (%r12)
	movq	_SPI_MODE_0@GOTPCREL(%rip), %rax
	movq	_SPI_CS_HIGH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 4(%r12)
	movq	%r12, %rdi
	callq	_spi_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.3:
	movq	_cpcap_regmap_config@GOTPCREL(%rip), %rsi
	movq	%rsi, 16(%r15)
	movq	%r12, %rdi
	callq	_devm_regmap_init_spi
	movl	%eax, 8(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movl	8(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	(%r15), %rdi
	addq	$8, %rdi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_10
LBB0_5:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
LBB0_13:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r15, %rdi
	callq	_cpcap_check_revision
	testl	%eax, %eax
	je	LBB0_14
## %bb.9:
	movl	%eax, %ebx
	movq	(%r15), %rdi
	addq	$8, %rdi
	leaq	L_.str.1(%rip), %rsi
LBB0_10:
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_12
LBB0_14:
	movq	%r15, %rdi
	callq	_cpcap_init_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.15:
	movq	_cpcap_mfd_devices@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	$0, (%rsp)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_devm_mfd_add_devices
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_cpcap_of_match,4,2             ## @cpcap_of_match
	.comm	_ENODEV,4,2                     ## @ENODEV
	.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	_cpcap_regmap_config,4,2        ## @cpcap_regmap_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to initialize regmap: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to detect CPCAP: %i\n"

	.comm	_cpcap_mfd_devices,4,2          ## @cpcap_mfd_devices
	.no_dead_strip	_cpcap_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpcap_probe
_cpcap_probe:                           ; @cpcap_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
Lloh0:
	adrp	x8, _cpcap_of_match@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cpcap_of_match@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_of_match_ptr
	add	x19, x21, #8
	mov	x1, x19
	bl	_of_match_device
	cbz	x0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	str	x21, [x0]
	mov	x0, x21
	mov	x1, x20
	bl	_spi_set_drvdata
	mov	w8, #16
	str	w8, [x21]
Lloh6:
	adrp	x8, _SPI_MODE_0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SPI_MODE_0@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _SPI_CS_HIGH@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SPI_CS_HIGH@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21, #4]
	mov	x0, x21
	bl	_spi_setup
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.3:
Lloh12:
	adrp	x1, _cpcap_regmap_config@GOTPAGE
Lloh13:
	ldr	x1, [x1, _cpcap_regmap_config@GOTPAGEOFF]
	str	x1, [x20, #16]
	mov	x0, x21
	bl	_devm_regmap_init_spi
	str	w0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.4:
	ldr	w0, [x20, #8]
	bl	_PTR_ERR
	mov	x22, x0
	ldr	x8, [x20]
	add	x0, x8, #8
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_5:
Lloh16:
	adrp	x8, _ENODEV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	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_9:
	mov	x0, x20
	bl	_cpcap_check_revision
	cbz	w0, LBB0_12
; %bb.10:
	mov	x22, x0
	ldr	x8, [x20]
	add	x0, x8, #8
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
	mov	x2, x22
	bl	_dev_err
	b	LBB0_8
LBB0_12:
	mov	x0, x20
	bl	_cpcap_init_irq
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.13:
Lloh22:
	adrp	x8, _cpcap_mfd_devices@GOTPAGE
Lloh23:
	ldr	x8, [x8, _cpcap_mfd_devices@GOTPAGEOFF]
Lloh24:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	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	_devm_mfd_add_devices
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_cpcap_of_match,4,2             ; @cpcap_of_match
	.comm	_ENODEV,4,2                     ; @ENODEV
	.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	_cpcap_regmap_config,4,2        ; @cpcap_regmap_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to initialize regmap: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to detect CPCAP: %i\n"

	.comm	_cpcap_mfd_devices,4,2          ; @cpcap_mfd_devices
	.no_dead_strip	_cpcap_probe
.subsections_via_symbols
