	.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_1x00
LCPI0_0:
	.long	4                               ## 0x4
	.long	2                               ## 0x2
	.long	186                             ## 0xba
	.long	100                             ## 0x64
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_hdcs_probe_1x00:                       ## @hdcs_probe_1x00
	.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	$8, -12(%rbp)
	jne	LBB0_2
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_info
	movq	_hdcs1x00_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 40(%rbx)
	callq	_ARRAY_SIZE
	movq	%rax, 32(%rbx)
	movq	_hdcs1x00_ctrl@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 24(%rbx)
	callq	_ARRAY_SIZE
	movq	%rax, 16(%rbx)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movabsq	$34359738376, %rcx              ## imm = 0x800000008
	movq	%rcx, 20(%rax)
	movq	_HDCS_1X00_DEF_WIDTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%rax)
	movq	_HDCS_1X00_DEF_HEIGHT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rax)
	movl	$4, 28(%rax)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [4,2,186,100]
	movups	%xmm0, 4(%rax)
	movq	(%rbx), %rcx
	movq	_BRIDGE_STV602@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	movl	$20, %ecx
	movl	$5, %edx
	cmovel	%ecx, %edx
	movl	%edx, (%rax)
	movq	%rax, 8(%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-1000/1100 sensor detected"

	.comm	_hdcs1x00_mode,8,3              ## @hdcs1x00_mode
	.comm	_hdcs1x00_ctrl,8,3              ## @hdcs1x00_ctrl
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HDCS_1X00_DEF_WIDTH,4,2        ## @HDCS_1X00_DEF_WIDTH
	.comm	_HDCS_1X00_DEF_HEIGHT,4,2       ## @HDCS_1X00_DEF_HEIGHT
	.comm	_BRIDGE_STV602,8,3              ## @BRIDGE_STV602
	.no_dead_strip	_hdcs_probe_1x00
.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_1x00
lCPI0_0:
	.long	4                               ; 0x4
	.long	2                               ; 0x2
	.long	186                             ; 0xba
	.long	100                             ; 0x64
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_hdcs_probe_1x00:                       ; @hdcs_probe_1x00
	.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, #8
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_info
Lloh5:
	adrp	x8, _hdcs1x00_mode@GOTPAGE
Lloh6:
	ldr	x8, [x8, _hdcs1x00_mode@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x8]
	str	x0, [x19, #40]
	bl	_ARRAY_SIZE
Lloh8:
	adrp	x8, _hdcs1x00_ctrl@GOTPAGE
Lloh9:
	ldr	x8, [x8, _hdcs1x00_ctrl@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	stp	x8, x0, [x19, #24]
	mov	x0, x8
	bl	_ARRAY_SIZE
	str	x0, [x19, #16]
Lloh11:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kmalloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x8, x0
	mov	w0, #0
	movi.2s	v0, #8
	stur	d0, [x8, #20]
Lloh14:
	adrp	x9, _HDCS_1X00_DEF_WIDTH@GOTPAGE
Lloh15:
	ldr	x9, [x9, _HDCS_1X00_DEF_WIDTH@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x9]
Lloh17:
	adrp	x10, _HDCS_1X00_DEF_HEIGHT@GOTPAGE
Lloh18:
	ldr	x10, [x10, _HDCS_1X00_DEF_HEIGHT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x10]
	mov	w10, #4
	stp	w9, w11, [x8, #32]
	str	w10, [x8, #28]
Lloh20:
	adrp	x9, lCPI0_0@PAGE
Lloh21:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
	ldr	x9, [x19]
Lloh22:
	adrp	x10, _BRIDGE_STV602@GOTPAGE
Lloh23:
	ldr	x10, [x10, _BRIDGE_STV602@GOTPAGEOFF]
Lloh24:
	ldr	x10, [x10]
	cmp	x9, x10
	mov	w9, #5
	mov	w10, #20
	csel	w9, w10, w9, eq
	stur	q0, [x8, #4]
	str	w9, [x8]
	str	x8, [x19, #8]
	b	LBB0_7
LBB0_4:
Lloh25:
	adrp	x8, _ENODEV@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	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	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdr	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.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-1000/1100 sensor detected"

	.comm	_hdcs1x00_mode,8,3              ; @hdcs1x00_mode
	.comm	_hdcs1x00_ctrl,8,3              ; @hdcs1x00_ctrl
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HDCS_1X00_DEF_WIDTH,4,2        ; @HDCS_1X00_DEF_WIDTH
	.comm	_HDCS_1X00_DEF_HEIGHT,4,2       ; @HDCS_1X00_DEF_HEIGHT
	.comm	_BRIDGE_STV602,8,3              ; @BRIDGE_STV602
	.no_dead_strip	_hdcs_probe_1x00
.subsections_via_symbols
