	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function hdcs_probe_1020
LCPI0_0:
	.long	6                               ## 0x6
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	155                             ## 0x9b
LCPI0_1:
	.long	96                              ## 0x60
	.long	24                              ## 0x18
	.long	4                               ## 0x4
	.long	304                             ## 0x130
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_hdcs_probe_1020:                       ## @hdcs_probe_1020
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_HDCS_IDENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	callq	_stv06xx_read_sensor
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	cmpl	$16, -12(%rbp)
	jne	LBB0_2
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	_hdcs1020_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 12(%rbx)
	callq	_ARRAY_SIZE
	movl	%eax, 8(%rbx)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	_HDCS_1020_DEF_WIDTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%rax)
	movl	$4, 32(%rax)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [6,3,3,155]
	movups	%xmm0, (%rax)
	movaps	LCPI0_1(%rip), %xmm0            ## xmm0 = [96,24,4,304]
	movups	%xmm0, 16(%rax)
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDCS_IDENT,4,2                 ## @HDCS_IDENT
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HDCS-1020 sensor detected\n"

	.comm	_hdcs1020_mode,4,2              ## @hdcs1020_mode
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HDCS_1020_DEF_WIDTH,4,2        ## @HDCS_1020_DEF_WIDTH
	.no_dead_strip	_hdcs_probe_1020
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function hdcs_probe_1020
lCPI0_0:
	.long	6                               ; 0x6
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	155                             ; 0x9b
lCPI0_1:
	.long	96                              ; 0x60
	.long	24                              ; 0x18
	.long	4                               ; 0x4
	.long	304                             ; 0x130
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_hdcs_probe_1020:                       ; @hdcs_probe_1020
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _HDCS_IDENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDCS_IDENT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_stv06xx_read_sensor
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w8, [sp, #12]
	cmp	w8, #16
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
Lloh5:
	adrp	x8, _hdcs1020_mode@GOTPAGE
Lloh6:
	ldr	x8, [x8, _hdcs1020_mode@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	str	w0, [x19, #12]
	bl	_ARRAY_SIZE
	str	w0, [x19, #8]
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kmalloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x8, x0
	mov	w0, #0
Lloh11:
	adrp	x9, _HDCS_1020_DEF_WIDTH@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HDCS_1020_DEF_WIDTH@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	mov	w10, #4
	stp	w10, w9, [x8, #32]
Lloh14:
	adrp	x9, lCPI0_0@PAGE
Lloh15:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
Lloh16:
	adrp	x9, lCPI0_1@PAGE
Lloh17:
	ldr	q1, [x9, lCPI0_1@PAGEOFF]
	stp	q0, q1, [x8]
	str	x8, [x19]
	b	LBB0_7
LBB0_4:
Lloh18:
	adrp	x8, _ENODEV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdr	Lloh16, Lloh17
	.loh AdrpAdrp	Lloh14, Lloh16
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_HDCS_IDENT,4,2                 ; @HDCS_IDENT
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HDCS-1020 sensor detected\n"

	.comm	_hdcs1020_mode,4,2              ; @hdcs1020_mode
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HDCS_1020_DEF_WIDTH,4,2        ; @HDCS_1020_DEF_WIDTH
	.no_dead_strip	_hdcs_probe_1020
.subsections_via_symbols
