	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smi_dvbsky_sit2_fe_attach
_smi_dvbsky_sit2_fe_attach:             ## @smi_dvbsky_sit2_fe_attach
	.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
	subq	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	32(%rdi), %rax
	xorl	%ebx, %ebx
	cmpq	$0, (%rdi)
	setne	%bl
	shlq	$2, %rbx
	addq	(%rax), %rbx
	leaq	-144(%rbp), %r12
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	leaq	-48(%rbp), %rax
	movq	%rax, -104(%rbp)
	leaq	24(%r15), %rax
	movq	%rax, -120(%rbp)
	movq	_SI2168_TS_PARALLEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -112(%rbp)
	leaq	-96(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movl	-80(%rbp), %edi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_strscpy
	movl	$100, -96(%rbp)
	movq	%r12, -88(%rbp)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_smi_add_i2c_client
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, 16(%r15)
	leaq	-192(%rbp), %r12
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	24(%r15), %rax
	movq	%rax, -168(%rbp)
	movl	$1, -188(%rbp)
	leaq	-96(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movl	-80(%rbp), %edi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_strscpy
	movl	$96, -96(%rbp)
	movq	%r12, -88(%rbp)
	movq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_smi_add_i2c_client
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, 8(%r15)
	jmp	LBB0_6
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	16(%r15), %rdi
	callq	_smi_del_i2c_client
	movq	$0, 16(%r15)
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
LBB0_5:
	subl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SI2168_TS_PARALLEL,4,2         ## @SI2168_TS_PARALLEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"si2168"

	.comm	_I2C_NAME_SIZE,4,2              ## @I2C_NAME_SIZE
	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"si2157"

	.no_dead_strip	_smi_dvbsky_sit2_fe_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smi_dvbsky_sit2_fe_attach
_smi_dvbsky_sit2_fe_attach:             ; @smi_dvbsky_sit2_fe_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	x19, x0
	ldr	x8, [x0, #32]
	ldr	x9, [x0]
	cmp	x9, #0
	cset	w9, ne
	ldr	x8, [x8]
	add	x20, x8, w9, uxtw #2
	add	x22, sp, #56
	add	x0, sp, #56
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	sub	x8, x29, #40
	str	x8, [sp, #96]
	add	x8, x19, #24
	str	x8, [sp, #80]
Lloh0:
	adrp	x8, _SI2168_TS_PARALLEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SI2168_TS_PARALLEL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #88]
	sub	x0, x29, #88
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	ldur	w0, [x29, #-72]
Lloh3:
	adrp	x21, _I2C_NAME_SIZE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _I2C_NAME_SIZE@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strscpy
	mov	w8, #100
	stur	w8, [x29, #-88]
	stur	x22, [x29, #-80]
	sub	x1, x29, #88
	mov	x0, x20
	bl	_smi_add_i2c_client
	cbz	x0, LBB0_4
; %bb.1:
	str	x0, [x19, #16]
	add	x20, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	ldr	x8, [x19, #24]
	str	x8, [sp, #32]
	mov	w8, #1
	str	w8, [sp, #12]
	sub	x0, x29, #88
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	ldur	w0, [x29, #-72]
	ldr	w2, [x21]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strscpy
	mov	w8, #96
	stur	w8, [x29, #-88]
	stur	x20, [x29, #-80]
	ldur	x0, [x29, #-40]
	sub	x1, x29, #88
	bl	_smi_add_i2c_client
	cbz	x0, LBB0_3
; %bb.2:
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #8]
	b	LBB0_5
LBB0_3:
	ldr	x0, [x19, #16]
	bl	_smi_del_i2c_client
	str	xzr, [x19, #16]
LBB0_4:
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SI2168_TS_PARALLEL,4,2         ; @SI2168_TS_PARALLEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"si2168"

	.comm	_I2C_NAME_SIZE,4,2              ; @I2C_NAME_SIZE
	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"si2157"

	.no_dead_strip	_smi_dvbsky_sit2_fe_attach
.subsections_via_symbols
