	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si2165_probe
_si2165_probe:                          ## @si2165_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, %r14
	movq	(%rdi), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$96, %edi
	callq	_kzalloc
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	_si2165_probe.regmap_config(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, 88(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	88(%r12), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_26
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_4:
	movq	%r14, 56(%r12)
	movl	8(%r14), %eax
	movl	%eax, 80(%r12)
	movq	(%rbx), %rax
	movq	%rax, 64(%r12)
	movl	8(%rbx), %edx
	movl	%edx, 72(%r12)
	movl	24(%rbx), %eax
	movl	%eax, 76(%r12)
	leal	-27000001(%rdx), %eax
	cmpl	$-23000002, %eax                ## imm = 0xFEA10C3E
	ja	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_6:
	leaq	24(%r12), %r15
	movq	_si2165_ops@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	$0, 40(%r12)
	movq	%r12, 48(%r12)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_i2c_set_clientdata
	movq	_REG_CHIP_MODE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	64(%r12), %rdx
	movq	%r12, %rdi
	callq	_si2165_writereg8
	testl	%eax, %eax
	js	LBB0_23
## %bb.7:
	movl	(%r13), %esi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_si2165_readreg8
	testl	%eax, %eax
	js	LBB0_23
## %bb.8:
	movq	-48(%rbp), %rax
	cmpq	64(%r12), %rax
	jne	LBB0_23
## %bb.9:
	movq	_REG_CHIP_REVCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r12, %rdx
	callq	_si2165_readreg8
	testl	%eax, %eax
	js	LBB0_23
## %bb.10:
	movq	_REV_CHIP_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdx
	addq	$8, %rdx
	movq	%r12, %rdi
	callq	_si2165_readreg8
	testl	%eax, %eax
	js	LBB0_23
## %bb.11:
	movl	(%r13), %esi
	movq	_SI2165_MODE_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r12, %rdi
	callq	_si2165_writereg8
	testl	%eax, %eax
	js	LBB0_23
## %bb.12:
	movq	(%r12), %rcx
	movq	8(%r12), %r8
	leal	65(%rcx), %eax
	cmpq	$26, %rcx
	movzbl	%al, %edx
	movl	$63, %eax
	cmovll	%edx, %eax
	cmpq	$7, %r8
	je	LBB0_15
## %bb.13:
	cmpq	$6, %r8
	jne	LBB0_22
## %bb.14:
	movl	$1, 16(%r12)
	leaq	L_.str.1(%rip), %r14
	jmp	LBB0_16
LBB0_15:
	movabsq	$4294967297, %rdx               ## imm = 0x100000001
	movq	%rdx, 16(%r12)
	leaq	L_.str.2(%rip), %r14
LBB0_16:
	movq	56(%r12), %rdi
	movsbl	%al, %eax
	movsbl	%cl, %r9d
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdx
	movl	%eax, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_dev_info
	movl	24(%r12), %edi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_strlcat
	cmpl	$0, 16(%r12)
	je	LBB0_17
## %bb.18:
	movq	_SYS_DVBT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	32(%r12), %rcx
	movl	%eax, (%rcx)
	movl	24(%r12), %edi
	leaq	L_.str.5(%rip), %rsi
	movl	$4, %edx
	callq	_strlcat
	movl	$1, %eax
	jmp	LBB0_19
LBB0_22:
	movq	56(%r12), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%r8d, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_23:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_24:
	xorl	%ebx, %ebx
LBB0_25:
	subl	(%rax), %ebx
LBB0_26:
	movq	%r12, %rdi
	callq	_kfree
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_dbg
LBB0_27:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	xorl	%eax, %eax
LBB0_19:
	cmpl	$0, 20(%r12)
	je	LBB0_21
## %bb.20:
	movq	_SYS_DVBC_ANNEX_A@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	32(%r12), %rdx
	movl	%ecx, (%rdx,%rax,4)
	movl	24(%r12), %edi
	leaq	L_.str.6(%rip), %rsi
	movl	$4, %edx
	callq	_strlcat
LBB0_21:
	movq	16(%rbx), %rax
	movq	%r15, (%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @si2165_probe.regmap_config
_si2165_probe.regmap_config:
	.long	16                              ## 0x10
	.long	8                               ## 0x8
	.long	2303                            ## 0x8ff

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ref_freq of %d Hz not supported by this driver\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_si2165_ops,4,2                 ## @si2165_ops
	.comm	_REG_CHIP_MODE,4,2              ## @REG_CHIP_MODE
	.comm	_REG_CHIP_REVCODE,4,2           ## @REG_CHIP_REVCODE
	.comm	_REV_CHIP_TYPE,4,2              ## @REV_CHIP_TYPE
	.comm	_SI2165_MODE_OFF,8,3            ## @SI2165_MODE_OFF
L_.str.1:                               ## @.str.1
	.asciz	"Si2161"

L_.str.2:                               ## @.str.2
	.asciz	"Si2165"

L_.str.3:                               ## @.str.3
	.asciz	"Unsupported Silicon Labs chip (type %d, rev %d)\n"

L_.str.4:                               ## @.str.4
	.asciz	"Detected Silicon Labs %s-%c (type %d, rev %d)\n"

	.comm	_SYS_DVBT,4,2                   ## @SYS_DVBT
L_.str.5:                               ## @.str.5
	.asciz	" DVB-T"

	.comm	_SYS_DVBC_ANNEX_A,4,2           ## @SYS_DVBC_ANNEX_A
L_.str.6:                               ## @.str.6
	.asciz	" DVB-C"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.7:                               ## @.str.7
	.asciz	"failed=%d\n"

	.no_dead_strip	_si2165_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si2165_probe
_si2165_probe:                          ; @si2165_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x23, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #96
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x1, _si2165_probe.regmap_config@PAGE
Lloh4:
	add	x1, x1, _si2165_probe.regmap_config@PAGEOFF
	mov	x0, x20
	bl	_devm_regmap_init_i2c
	str	w0, [x19, #88]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x19, #88]
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_21
LBB0_3:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_20
LBB0_4:
	ldr	w8, [x20, #8]
	str	w8, [x19, #80]
	ldr	x8, [x23]
	stp	x20, x8, [x19, #56]
	ldr	w2, [x23, #8]
	ldr	w8, [x23, #24]
	stp	w2, w8, [x19, #72]
	mov	w8, #831
	movk	w8, #65124, lsl #16
	mov	w9, #3134
	movk	w9, #65185, lsl #16
	add	w8, w2, w8
	cmp	w8, w9
	b.hi	LBB0_6
; %bb.5:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_20
LBB0_6:
	add	x21, x19, #24
Lloh11:
	adrp	x1, _si2165_ops@GOTPAGE
Lloh12:
	ldr	x1, [x1, _si2165_ops@GOTPAGEOFF]
	mov	x0, x21
	mov	w2, #4
	bl	_memcpy
	stp	xzr, x19, [x19, #40]
	mov	x0, x20
	mov	x1, x19
	bl	_i2c_set_clientdata
Lloh13:
	adrp	x22, _REG_CHIP_MODE@GOTPAGE
Lloh14:
	ldr	x22, [x22, _REG_CHIP_MODE@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	x2, [x19, #64]
	mov	x0, x19
	bl	_si2165_writereg8
	tbnz	w0, #31, LBB0_19
; %bb.7:
	ldr	w1, [x22]
	add	x2, sp, #8
	mov	x0, x19
	bl	_si2165_readreg8
	tbnz	w0, #31, LBB0_19
; %bb.8:
	ldr	x8, [sp, #8]
	ldr	x9, [x19, #64]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.9:
Lloh15:
	adrp	x8, _REG_CHIP_REVCODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REG_CHIP_REVCODE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x19
	bl	_si2165_readreg8
	tbnz	w0, #31, LBB0_19
; %bb.10:
Lloh18:
	adrp	x8, _REV_CHIP_TYPE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _REV_CHIP_TYPE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x2, x19, #8
	mov	x0, x19
	bl	_si2165_readreg8
	tbnz	w0, #31, LBB0_19
; %bb.11:
	ldr	w1, [x22]
Lloh21:
	adrp	x8, _SI2165_MODE_OFF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SI2165_MODE_OFF@GOTPAGEOFF]
Lloh23:
	ldr	x2, [x8]
	mov	x0, x19
	bl	_si2165_writereg8
	tbnz	w0, #31, LBB0_19
; %bb.12:
	ldp	x8, x4, [x19]
	add	w9, w8, #65
	cmp	x8, #26
	mov	w10, #63
	csel	w9, w9, w10, lt
	cmp	x4, #7
	b.eq	LBB0_15
; %bb.13:
	cmp	x4, #6
	b.ne	LBB0_18
; %bb.14:
	mov	w10, #1
	str	w10, [x19, #16]
Lloh24:
	adrp	x20, l_.str.1@PAGE
Lloh25:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_15:
	movi.2s	v0, #1
	str	d0, [x19, #16]
Lloh26:
	adrp	x20, l_.str.2@PAGE
Lloh27:
	add	x20, x20, l_.str.2@PAGEOFF
LBB0_16:
	ldr	x0, [x19, #56]
	sxtb	w3, w9
	sxtb	w5, w8
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x20
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_dev_info
	ldr	w0, [x19, #24]
	mov	x1, x20
	mov	w2, #4
	bl	_strlcat
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_23
; %bb.17:
Lloh30:
	adrp	x8, _SYS_DVBT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SYS_DVBT@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	ldr	x9, [x19, #32]
	str	w8, [x9]
	ldr	w0, [x19, #24]
Lloh33:
	adrp	x1, l_.str.5@PAGE
Lloh34:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w2, #4
	bl	_strlcat
	mov	w8, #1
	b	LBB0_24
LBB0_18:
	ldr	x0, [x19, #56]
	str	x8, [sp]
Lloh35:
	adrp	x1, l_.str.3@PAGE
Lloh36:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x4
	bl	_dev_err
LBB0_19:
Lloh37:
	adrp	x8, _ENODEV@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_20:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_21:
	mov	x0, x19
	bl	_kfree
Lloh39:
	adrp	x1, l_.str.7@PAGE
Lloh40:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_dev_dbg
LBB0_22:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_23:
	mov	x8, #0
LBB0_24:
	ldr	w9, [x19, #20]
	cbz	w9, LBB0_26
; %bb.25:
Lloh41:
	adrp	x9, _SYS_DVBC_ANNEX_A@GOTPAGE
Lloh42:
	ldr	x9, [x9, _SYS_DVBC_ANNEX_A@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	ldr	x10, [x19, #32]
	str	w9, [x10, x8, lsl #2]
	ldr	w0, [x19, #24]
Lloh44:
	adrp	x1, l_.str.6@PAGE
Lloh45:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w2, #4
	bl	_strlcat
LBB0_26:
	mov	w22, #0
	ldr	x8, [x23, #16]
	str	x21, [x8]
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @si2165_probe.regmap_config
_si2165_probe.regmap_config:
	.long	16                              ; 0x10
	.long	8                               ; 0x8
	.long	2303                            ; 0x8ff

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ref_freq of %d Hz not supported by this driver\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_si2165_ops,4,2                 ; @si2165_ops
	.comm	_REG_CHIP_MODE,4,2              ; @REG_CHIP_MODE
	.comm	_REG_CHIP_REVCODE,4,2           ; @REG_CHIP_REVCODE
	.comm	_REV_CHIP_TYPE,4,2              ; @REV_CHIP_TYPE
	.comm	_SI2165_MODE_OFF,8,3            ; @SI2165_MODE_OFF
l_.str.1:                               ; @.str.1
	.asciz	"Si2161"

l_.str.2:                               ; @.str.2
	.asciz	"Si2165"

l_.str.3:                               ; @.str.3
	.asciz	"Unsupported Silicon Labs chip (type %d, rev %d)\n"

l_.str.4:                               ; @.str.4
	.asciz	"Detected Silicon Labs %s-%c (type %d, rev %d)\n"

	.comm	_SYS_DVBT,4,2                   ; @SYS_DVBT
l_.str.5:                               ; @.str.5
	.asciz	" DVB-T"

	.comm	_SYS_DVBC_ANNEX_A,4,2           ; @SYS_DVBC_ANNEX_A
l_.str.6:                               ; @.str.6
	.asciz	" DVB-C"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.7:                               ; @.str.7
	.asciz	"failed=%d\n"

	.no_dead_strip	_si2165_probe
.subsections_via_symbols
