	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxd2099_probe
_cxd2099_probe:                         ## @cxd2099_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, %r14
	movq	(%rdi), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r14, 48(%rax)
	leaq	44(%rax), %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy
	leaq	_cxd2099_probe.rm_cfg(%rip), %rsi
	movq	%r14, %rdi
	callq	_regmap_init_i2c
	movl	%eax, 12(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	12(%r12), %edi
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_4:
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_5:
	leaq	-36(%rbp), %rdx
	xorl	%esi, %esi
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	leaq	40(%r12), %rdi
	callq	_mutex_init
	movabsq	$317827580159, %rax             ## imm = 0x4A000000FF
	movq	%rax, (%r12)
	movl	$27, 8(%r12)
	movq	%r12, %rbx
	addq	$16, %rbx
	movq	_en_templ@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	%xmm0, 16(%r12)
	movq	%r12, 32(%r12)
	movq	%r12, %rdi
	callq	_init
	movl	8(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	movq	(%r15), %rax
	movq	%rbx, (%rax)
	movq	_buffermode@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_10
LBB0_6:
	movl	%eax, %ebx
	movl	8(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	movl	12(%r12), %edi
	callq	_regmap_exit
	jmp	LBB0_4
LBB0_8:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
LBB0_10:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_i2c_set_clientdata
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @cxd2099_probe.rm_cfg
_cxd2099_probe.rm_cfg:
	.long	8                               ## 0x8
	.long	8                               ## 0x8

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No CXD2099AR detected at 0x%02x\n"

	.comm	_en_templ,24,3                  ## @en_templ
L_.str.1:                               ## @.str.1
	.asciz	"Attached CXD2099AR at 0x%02x\n"

	.comm	_buffermode,4,2                 ## @buffermode
L_.str.2:                               ## @.str.2
	.asciz	"Using CXD2099AR buffer mode"

	.no_dead_strip	_cxd2099_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function cxd2099_probe
lCPI0_0:
	.long	255                             ; 0xff
	.long	74                              ; 0x4a
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_cxd2099_probe:                         ; @cxd2099_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	str	x20, [x0, #48]
	add	x0, x0, #44
	mov	x1, x21
	mov	w2, #4
	bl	_memcpy
Lloh3:
	adrp	x1, _cxd2099_probe.rm_cfg@PAGE
Lloh4:
	add	x1, x1, _cxd2099_probe.rm_cfg@PAGEOFF
	mov	x0, x20
	bl	_regmap_init_i2c
	str	w0, [x19, #12]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x19, #12]
	cbz	x8, LBB0_5
; %bb.2:
	bl	_PTR_ERR
	mov	x22, x0
LBB0_3:
	mov	x0, x19
	bl	_kfree
	b	LBB0_11
LBB0_4:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_11
LBB0_5:
	add	x2, sp, #12
	mov	w1, #0
	bl	_regmap_read
	tbnz	w0, #31, LBB0_8
; %bb.6:
	add	x0, x19, #40
	bl	_mutex_init
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	mov	w8, #27
	str	w8, [x19, #8]
	add	x22, x19, #16
Lloh10:
	adrp	x8, _en_templ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _en_templ@GOTPAGEOFF]
Lloh12:
	ldr	q0, [x8]
	str	q0, [x19, #16]
	str	x19, [x19, #32]
	mov	x0, x19
	bl	_init
	ldr	w8, [x20, #8]
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	ldr	x8, [x21]
	str	x22, [x8]
Lloh15:
	adrp	x8, _buffermode@GOTPAGE
Lloh16:
	ldr	x8, [x8, _buffermode@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cbz	w8, LBB0_9
; %bb.7:
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	b	LBB0_10
LBB0_8:
	mov	x22, x0
	ldr	w8, [x20, #8]
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	ldr	w0, [x19, #12]
	bl	_regmap_exit
	b	LBB0_3
LBB0_9:
	stp	xzr, xzr, [x22]
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	bl	_i2c_set_clientdata
	mov	w22, #0
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @cxd2099_probe.rm_cfg
_cxd2099_probe.rm_cfg:
	.long	8                               ; 0x8
	.long	8                               ; 0x8

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No CXD2099AR detected at 0x%02x\n"

	.comm	_en_templ,24,3                  ; @en_templ
l_.str.1:                               ; @.str.1
	.asciz	"Attached CXD2099AR at 0x%02x\n"

	.comm	_buffermode,4,2                 ; @buffermode
l_.str.2:                               ; @.str.2
	.asciz	"Using CXD2099AR buffer mode"

	.no_dead_strip	_cxd2099_probe
.subsections_via_symbols
