	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flexcop_i2c_init               ## -- Begin function flexcop_i2c_init
	.p2align	4, 0x90
_flexcop_i2c_init:                      ## @flexcop_i2c_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	addq	$16, %rdi
	callq	_mutex_init
	movq	(%rbx), %rax
	movq	%rbx, 40(%rax)
	movq	%rbx, 88(%rax)
	movq	%rbx, 136(%rax)
	movq	_FC_I2C_PORT_DEMOD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rax)
	movq	_FC_I2C_PORT_EEPROM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 80(%rax)
	movq	_FC_I2C_PORT_TUNER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 128(%rax)
	movl	24(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movq	(%rbx), %rax
	movl	72(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movq	(%rbx), %rax
	movl	120(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movq	(%rbx), %rdi
	movq	%rdi, %rsi
	callq	_i2c_set_adapdata
	movq	(%rbx), %rdi
	addq	$48, %rdi
	movq	%rdi, %rsi
	callq	_i2c_set_adapdata
	movq	(%rbx), %rdi
	addq	$96, %rdi
	movq	%rdi, %rsi
	callq	_i2c_set_adapdata
	movq	(%rbx), %rdi
	movq	_flexcop_algo@GOTPCREL(%rip), %rax
	movq	%rax, 112(%rdi)
	movq	%rax, 64(%rdi)
	movq	%rax, 16(%rdi)
	movq	$0, 104(%rdi)
	movq	$0, 56(%rdi)
	movq	$0, 8(%rdi)
	movl	12(%rbx), %eax
	movl	%eax, 96(%rdi)
	movl	%eax, 48(%rdi)
	movl	%eax, (%rdi)
	callq	_i2c_add_adapter
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	(%rbx), %rdi
	addq	$48, %rdi
	callq	_i2c_add_adapter
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	(%rbx), %rdi
	addq	$96, %rdi
	callq	_i2c_add_adapter
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	movq	_FC_STATE_I2C_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_1:
	movl	%eax, %r14d
	jmp	LBB0_8
LBB0_3:
	movl	%eax, %r14d
	jmp	LBB0_7
LBB0_6:
	movl	%eax, %r14d
	movq	(%rbx), %rdi
	addq	$48, %rdi
	callq	_i2c_del_adapter
LBB0_7:
	movq	(%rbx), %rdi
	callq	_i2c_del_adapter
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FC_I2C_PORT_DEMOD,4,2          ## @FC_I2C_PORT_DEMOD
	.comm	_FC_I2C_PORT_EEPROM,4,2         ## @FC_I2C_PORT_EEPROM
	.comm	_FC_I2C_PORT_TUNER,4,2          ## @FC_I2C_PORT_TUNER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"B2C2 FlexCop I2C to demod"

L_.str.1:                               ## @.str.1
	.asciz	"B2C2 FlexCop I2C to eeprom"

L_.str.2:                               ## @.str.2
	.asciz	"B2C2 FlexCop I2C to tuner"

	.comm	_flexcop_algo,4,2               ## @flexcop_algo
	.comm	_FC_STATE_I2C_INIT,4,2          ## @FC_STATE_I2C_INIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flexcop_i2c_init               ; -- Begin function flexcop_i2c_init
	.p2align	2
_flexcop_i2c_init:                      ; @flexcop_i2c_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, x0, #16
	bl	_mutex_init
	ldr	x8, [x19]
	str	x19, [x8, #40]
	str	x19, [x8, #88]
Lloh0:
	adrp	x9, _FC_I2C_PORT_DEMOD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FC_I2C_PORT_DEMOD@GOTPAGEOFF]
	str	x19, [x8, #136]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x8, #32]
Lloh3:
	adrp	x9, _FC_I2C_PORT_EEPROM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FC_I2C_PORT_EEPROM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	str	w9, [x8, #80]
Lloh6:
	adrp	x9, _FC_I2C_PORT_TUNER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FC_I2C_PORT_TUNER@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	str	w9, [x8, #128]
	ldr	w0, [x8, #24]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strscpy
	ldr	x8, [x19]
	ldr	w0, [x8, #72]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #4
	bl	_strscpy
	ldr	x8, [x19]
	ldr	w0, [x8, #120]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #4
	bl	_strscpy
	ldr	x0, [x19]
	mov	x1, x0
	bl	_i2c_set_adapdata
	ldr	x8, [x19]
	add	x0, x8, #48
	mov	x1, x0
	bl	_i2c_set_adapdata
	ldr	x8, [x19]
	add	x0, x8, #96
	mov	x1, x0
	bl	_i2c_set_adapdata
	ldr	x0, [x19]
Lloh15:
	adrp	x8, _flexcop_algo@GOTPAGE
Lloh16:
	ldr	x8, [x8, _flexcop_algo@GOTPAGEOFF]
	stp	xzr, x8, [x0, #104]
	stp	xzr, x8, [x0, #56]
	stp	xzr, x8, [x0, #8]
	ldr	w8, [x19, #12]
	str	w8, [x0, #96]
	str	w8, [x0, #48]
	str	w8, [x0]
	bl	_i2c_add_adapter
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	x8, [x19]
	add	x0, x8, #48
	bl	_i2c_add_adapter
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	x8, [x19]
	add	x0, x8, #96
	bl	_i2c_add_adapter
	tbnz	w0, #31, LBB0_6
; %bb.3:
	mov	w20, #0
Lloh17:
	adrp	x8, _FC_STATE_I2C_INIT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FC_STATE_I2C_INIT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	b	LBB0_8
LBB0_4:
	mov	x20, x0
	b	LBB0_8
LBB0_5:
	mov	x20, x0
	b	LBB0_7
LBB0_6:
	mov	x20, x0
	ldr	x8, [x19]
	add	x0, x8, #48
	bl	_i2c_del_adapter
LBB0_7:
	ldr	x0, [x19]
	bl	_i2c_del_adapter
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_FC_I2C_PORT_DEMOD,4,2          ; @FC_I2C_PORT_DEMOD
	.comm	_FC_I2C_PORT_EEPROM,4,2         ; @FC_I2C_PORT_EEPROM
	.comm	_FC_I2C_PORT_TUNER,4,2          ; @FC_I2C_PORT_TUNER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"B2C2 FlexCop I2C to demod"

l_.str.1:                               ; @.str.1
	.asciz	"B2C2 FlexCop I2C to eeprom"

l_.str.2:                               ; @.str.2
	.asciz	"B2C2 FlexCop I2C to tuner"

	.comm	_flexcop_algo,4,2               ; @flexcop_algo
	.comm	_FC_STATE_I2C_INIT,4,2          ; @FC_STATE_I2C_INIT
.subsections_via_symbols
