	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function helene_probe
_helene_probe:                          ## @helene_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	8(%rdi), %r14
	movq	8(%rdi), %rbx
	movq	16(%rbx), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$20, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	movl	8(%rbx), %eax
	movl	%eax, 16(%r13)
	movsd	(%r12), %xmm0                   ## xmm0 = mem[0],zero
	movsd	(%rbx), %xmm1                   ## xmm1 = mem[0],zero
	movlhps	%xmm1, %xmm0                    ## xmm0 = xmm0[0],xmm1[0]
	movups	%xmm0, (%r13)
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	*%rax
LBB0_5:
	movq	%r13, %rdi
	callq	_helene_x_pon
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_7:
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	*%rax
LBB0_9:
	leaq	8(%r15), %rdi
	movq	_helene_tuner_ops@GOTPCREL(%rip), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r13, (%r15)
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_i2c_set_clientdata
	movl	(%r13), %ecx
	movl	4(%r13), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_helene_tuner_ops,4,2           ## @helene_tuner_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sony HELENE attached on addr=%x at I2C adapter %p\n"

	.no_dead_strip	_helene_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function helene_probe
_helene_probe:                          ; @helene_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	mov	x19, x0
	ldr	x23, [x19, #8]!
	ldr	x21, [x23, #16]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #20
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x22, x0
	ldr	w8, [x23, #8]
	str	w8, [x0, #16]
	ldr	d0, [x20]
	ldr	d1, [x23]
	mov.d	v0[1], v1[0]
	str	q0, [x0]
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x21
	mov	w1, #1
	blr	x8
LBB0_3:
	mov	x0, x22
	bl	_helene_x_pon
	cbz	x0, LBB0_7
; %bb.4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_7:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x21
	mov	w1, #0
	blr	x8
LBB0_9:
	add	x0, x21, #8
Lloh7:
	adrp	x1, _helene_tuner_ops@GOTPAGE
Lloh8:
	ldr	x1, [x1, _helene_tuner_ops@GOTPAGEOFF]
	mov	w2, #4
	bl	_memcpy
	str	x22, [x21]
	mov	x0, x20
	mov	x1, x22
	bl	_i2c_set_clientdata
	ldp	w3, w2, [x22]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w0, #0
LBB0_10:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_helene_tuner_ops,4,2           ; @helene_tuner_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sony HELENE attached on addr=%x at I2C adapter %p\n"

	.no_dead_strip	_helene_probe
.subsections_via_symbols
