	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smi_dvbsky_m88rs6000_fe_attach
_smi_dvbsky_m88rs6000_fe_attach:        ## @smi_dvbsky_m88rs6000_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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r15
	leaq	-64(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	xorl	%edx, %edx
	cmpq	$0, (%rbx)
	setne	%dl
	shlq	$2, %rdx
	addq	(%r15), %rdx
	movq	_m88ds3103_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_smi_dvbsky_m88rs6000_cfg@GOTPCREL(%rip), %rsi
	leaq	-40(%rbp), %rcx
	callq	_dvb_attach
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, -32(%rbp)
	movl	-48(%rbp), %edi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_strscpy
	movl	$33, -64(%rbp)
	leaq	-32(%rbp), %rax
	movq	%rax, -56(%rbp)
	movq	-40(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	callq	_smi_add_i2c_client
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	8(%rbx), %rcx
	movl	(%rcx), %edx
	movl	%edx, 4(%rcx)
	movq	%rax, 16(%rbx)
	xorl	%r14d, %r14d
	jmp	LBB0_5
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_5
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	8(%rbx), %rdi
	callq	_dvb_frontend_detach
LBB0_5:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_m88ds3103_attach,4,2           ## @m88ds3103_attach
	.comm	_smi_dvbsky_m88rs6000_cfg,4,2   ## @smi_dvbsky_m88rs6000_cfg
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"m88rs6000t"

	.comm	_I2C_NAME_SIZE,4,2              ## @I2C_NAME_SIZE
	.no_dead_strip	_smi_dvbsky_m88rs6000_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_m88rs6000_fe_attach
_smi_dvbsky_m88rs6000_fe_attach:        ; @smi_dvbsky_m88rs6000_fe_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	ldr	x20, [x0, #24]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w8, ne
	ldr	x9, [x20]
	add	x2, x9, w8, uxtw #2
Lloh0:
	adrp	x8, _m88ds3103_attach@GOTPAGE
Lloh1:
	ldr	x8, [x8, _m88ds3103_attach@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, _smi_dvbsky_m88rs6000_cfg@GOTPAGE
Lloh4:
	ldr	x1, [x1, _smi_dvbsky_m88rs6000_cfg@GOTPAGEOFF]
	sub	x3, x29, #24
	bl	_dvb_attach
	str	x0, [x19, #8]
	cbz	x0, LBB0_3
; %bb.1:
	str	x0, [sp, #8]
	ldr	w0, [sp, #32]
Lloh5:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strscpy
	mov	w8, #33
	str	w8, [sp, #16]
	add	x8, sp, #8
	str	x8, [sp, #24]
	ldur	x0, [x29, #-24]
	add	x1, sp, #16
	bl	_smi_add_i2c_client
	cbz	x0, LBB0_4
; %bb.2:
	mov	w20, #0
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	str	w9, [x8, #4]
	str	x0, [x19, #16]
	b	LBB0_5
LBB0_3:
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_5
LBB0_4:
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w20, w8
	ldr	x0, [x19, #8]
	bl	_dvb_frontend_detach
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_m88ds3103_attach,4,2           ; @m88ds3103_attach
	.comm	_smi_dvbsky_m88rs6000_cfg,4,2   ; @smi_dvbsky_m88rs6000_cfg
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"m88rs6000t"

	.comm	_I2C_NAME_SIZE,4,2              ; @I2C_NAME_SIZE
	.no_dead_strip	_smi_dvbsky_m88rs6000_fe_attach
.subsections_via_symbols
