	.file	"extr_sii902x.c_sii902x_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"I2C adapter not suitable\n"
.LC1:
	.string	"reset"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Failed to retrieve/request reset gpio: %ld\n"
	.section	.rodata.str1.1
.LC3:
	.string	"regmap_read failed %d\n"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"Invalid chipid: %02x (expecting 0xb0)\n"
	.text
	.p2align 4
	.type	sii902x_probe, @function
sii902x_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	r13, 8[rdi]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	esi, DWORD PTR I2C_FUNC_SMBUS_BYTE_DATA[rip]
	mov	edi, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 12[rsp], 0
	call	i2c_check_functionality@PLT
	test	eax, eax
	je	.L17
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 56
	mov	rdi, r13
	call	devm_kzalloc@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L10
	mov	QWORD PTR 48[rax], rbx
	mov	rdi, rbx
	lea	rsi, sii902x_regmap_config[rip]
	call	devm_regmap_init_i2c@PLT
	mov	DWORD PTR 32[rbp], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L18
	mov	edx, DWORD PTR GPIOD_OUT_LOW[rip]
	mov	rdi, r13
	lea	rsi, .LC1[rip]
	call	devm_gpiod_get_optional@PLT
	mov	DWORD PTR 40[rbp], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L19
	lea	rdi, 36[rbp]
	call	mutex_init@PLT
	mov	rdi, rbp
	call	sii902x_reset@PLT
	mov	edi, DWORD PTR 32[rbp]
	mov	esi, DWORD PTR SII902X_REG_TPI_RQB[rip]
	xor	edx, edx
	call	regmap_write@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	xor	edi, edi
	call	SII902X_REG_CHIPID@PLT
	mov	edi, DWORD PTR 32[rbp]
	lea	rdx, 16[rsp]
	mov	ecx, 4
	mov	esi, eax
	call	regmap_bulk_read@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L20
	mov	edx, DWORD PTR 16[rsp]
	cmp	edx, 176
	jne	.L21
	mov	edi, DWORD PTR 32[rbp]
	mov	esi, DWORD PTR SII902X_INT_STATUS[rip]
	lea	rdx, 12[rsp]
	call	regmap_read@PLT
	mov	edi, DWORD PTR 32[rbp]
	mov	edx, DWORD PTR 12[rsp]
	mov	esi, DWORD PTR SII902X_INT_STATUS[rip]
	call	regmap_write@PLT
	mov	edi, DWORD PTR 4[rbx]
	test	edi, edi
	jle	.L12
	mov	edx, DWORD PTR SII902X_HOTPLUG_EVENT[rip]
	mov	esi, DWORD PTR SII902X_INT_ENABLE[rip]
	mov	edi, DWORD PTR 32[rbp]
	call	regmap_write@PLT
	mov	rdi, r13
	call	dev_name@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	esi, DWORD PTR 4[rbx]
	xor	edx, edx
	push	rbp
	.cfi_def_cfa_offset 112
	mov	r8d, DWORD PTR IRQF_ONESHOT[rip]
	mov	r9d, eax
	mov	rdi, r13
	mov	ecx, DWORD PTR sii902x_interrupt[rip]
	call	devm_request_threaded_irq@PLT
	mov	r12d, eax
	pop	rax
	.cfi_def_cfa_offset 104
	pop	rdx
	.cfi_def_cfa_offset 96
	test	r12d, r12d
	jne	.L1
.L12:
	lea	rax, sii902x_bridge_funcs[rip]
	lea	rdi, 8[rbp]
	mov	QWORD PTR 24[rbp], rax
	mov	eax, DWORD PTR 8[rbx]
	mov	DWORD PTR 16[rbp], eax
	lea	rax, default_sii902x_timings[rip]
	mov	QWORD PTR 8[rbp], rax
	call	drm_bridge_add@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	sii902x_audio_codec_init@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	call	i2c_set_clientdata@PLT
	mov	eax, DWORD PTR sii902x_i2c_bypass_deselect[rip]
	mov	edi, DWORD PTR [rbx]
	xor	ecx, ecx
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	r9d, DWORD PTR sii902x_i2c_bypass_select[rip]
	mov	rsi, r13
	mov	edx, 1
	push	rax
	.cfi_def_cfa_offset 112
	mov	r8d, DWORD PTR I2C_MUX_GATE[rip]
	call	i2c_mux_alloc@PLT
	mov	QWORD PTR 0[rbp], rax
	mov	rdi, rax
	pop	rcx
	.cfi_def_cfa_offset 104
	pop	rsi
	.cfi_def_cfa_offset 96
	test	rax, rax
	je	.L10
	mov	QWORD PTR [rax], rbp
	xor	ecx, ecx
	xor	edx, edx
	xor	esi, esi
	call	i2c_mux_add_adapter@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	call	dev_err@PLT
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edi, DWORD PTR 40[rbp]
	call	PTR_ERR@PLT
	lea	rsi, .LC2[rip]
	mov	rdi, r13
	mov	edx, eax
	xor	eax, eax
	call	dev_err@PLT
	mov	edi, DWORD PTR 40[rbp]
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edi, DWORD PTR 32[rbp]
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	lea	rsi, .LC4[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edx, eax
	lea	rsi, .LC3[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sii902x_probe, .-sii902x_probe
	.comm	sii902x_regmap_config,4,4
	.comm	sii902x_interrupt,4,4
	.comm	sii902x_i2c_bypass_select,4,4
	.comm	sii902x_i2c_bypass_deselect,4,4
	.comm	sii902x_bridge_funcs,4,4
	.comm	default_sii902x_timings,4,4
	.comm	SII902X_REG_TPI_RQB,4,4
	.comm	SII902X_INT_STATUS,4,4
	.comm	SII902X_INT_ENABLE,4,4
	.comm	SII902X_HOTPLUG_EVENT,4,4
	.comm	IRQF_ONESHOT,4,4
	.comm	I2C_MUX_GATE,4,4
	.comm	I2C_FUNC_SMBUS_BYTE_DATA,4,4
	.comm	GPIOD_OUT_LOW,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sii902x.c_sii902x_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"I2C adapter not suitable\012\000"
	.align	2
.LC1:
	.ascii	"reset\000"
	.align	2
.LC2:
	.ascii	"Failed to retrieve/request reset gpio: %ld\012\000"
	.align	2
.LC3:
	.ascii	"regmap_read failed %d\012\000"
	.align	2
.LC4:
	.ascii	"Invalid chipid: %02x (expecting 0xb0)\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sii902x_probe, %function
sii902x_probe:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r0
	mov	r3, #0
	ldr	r2, .L25
	sub	sp, sp, #40
	ldr	r1, [r2]
	ldr	r2, .L25+4
	mov	r6, r0
	ldr	r0, [r7], #8
	ldr	r2, [r2]
	str	r2, [sp, #36]
	mov	r2,#0
	str	r3, [sp, #16]
	bl	i2c_check_functionality
	cmp	r0, #0
	beq	.L17
	ldr	r3, .L25+8
	mov	r1, #32
	mov	r0, r7
	ldr	r2, [r3]
	bl	devm_kzalloc
	subs	r4, r0, #0
	beq	.L18
	ldr	r1, .L25+12
	mov	r0, r6
	str	r6, [r4, #28]
	bl	devm_regmap_init_i2c
	str	r0, [r4, #16]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L19
	ldr	r3, .L25+16
	ldr	r1, .L25+20
	ldr	r2, [r3]
	mov	r0, r7
	bl	devm_gpiod_get_optional
	str	r0, [r4, #24]
	bl	IS_ERR
	subs	r5, r0, #0
	bne	.L20
	add	r0, r4, #20
	bl	mutex_init
	mov	r0, r4
	bl	sii902x_reset
	ldr	r3, .L25+24
	mov	r2, r5
	ldr	r1, [r3]
	ldr	r0, [r4, #16]
	bl	regmap_write
	subs	r5, r0, #0
	bne	.L1
	ldr	r5, [r4, #16]
	bl	SII902X_REG_CHIPID
	mov	r3, #4
	mov	r1, r0
	add	r2, sp, #20
	mov	r0, r5
	bl	regmap_bulk_read
	subs	r5, r0, #0
	bne	.L21
	ldr	r2, [sp, #20]
	cmp	r2, #176
	bne	.L22
	ldr	r8, .L25+28
	add	r2, sp, #16
	ldr	r1, [r8]
	ldr	r0, [r4, #16]
	bl	regmap_read
	ldr	r1, [r8]
	ldr	r2, [sp, #16]
	ldr	r0, [r4, #16]
	bl	regmap_write
	ldr	r3, [r6, #4]
	cmp	r3, #0
	ble	.L12
	ldr	r3, .L25+32
	ldr	r2, .L25+36
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r0, [r4, #16]
	bl	regmap_write
	ldr	r2, .L25+40
	ldr	r3, .L25+44
	mov	r0, r7
	ldr	r9, [r2]
	ldr	r10, [r3]
	ldr	r8, [r6, #4]
	bl	dev_name
	mov	r2, r5
	stmib	sp, {r0, r4}
	mov	r3, r9
	mov	r1, r8
	mov	r0, r7
	str	r10, [sp]
	bl	devm_request_threaded_irq
	subs	r5, r0, #0
	bne	.L1
.L12:
	mov	r0, r4
	ldr	r3, .L25+48
	ldr	r2, [r6, #8]
	str	r3, [r4, #12]
	ldr	r3, .L25+52
	str	r2, [r4, #8]
	str	r3, [r0, #4]!
	bl	drm_bridge_add
	mov	r1, r7
	mov	r0, r4
	bl	sii902x_audio_codec_init
	mov	r1, r4
	mov	r0, r6
	bl	i2c_set_clientdata
	ldr	r1, .L25+56
	ldr	r2, .L25+60
	ldr	r3, .L25+64
	ldr	ip, [r1]
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r0, [r6]
	mov	r1, r7
	stmib	sp, {r2, ip}
	str	r3, [sp]
	mov	r2, #1
	mov	r3, #0
	bl	i2c_mux_alloc
	cmp	r0, #0
	str	r0, [r4]
	beq	.L23
	mov	r3, #0
	str	r4, [r0]
	mov	r2, r3
	mov	r1, r3
	bl	i2c_mux_add_adapter
	mov	r5, r0
	b	.L1
.L18:
	ldr	r3, .L25+68
	ldr	r0, [r3]
	rsb	r5, r0, #0
.L1:
	ldr	r3, .L25+4
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	mov	r0, r5
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	mov	r0, r7
	ldr	r1, .L25+72
	bl	dev_err
	ldr	r3, .L25+76
	ldr	r0, [r3]
	rsb	r5, r0, #0
	b	.L1
.L20:
	ldr	r0, [r4, #24]
	bl	PTR_ERR
	ldr	r1, .L25+80
	mov	r2, r0
	mov	r0, r7
	bl	dev_err
	ldr	r0, [r4, #24]
	bl	PTR_ERR
	mov	r5, r0
	b	.L1
.L19:
	ldr	r0, [r4, #16]
	bl	PTR_ERR
	mov	r5, r0
	b	.L1
.L22:
	mov	r0, r7
	ldr	r1, .L25+84
	bl	dev_err
	ldr	r3, .L25+88
	ldr	r0, [r3]
	rsb	r5, r0, #0
	b	.L1
.L21:
	mov	r0, r7
	mov	r2, r5
	ldr	r1, .L25+92
	bl	dev_err
	b	.L1
.L23:
	ldr	r3, .L25+68
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L24:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	I2C_FUNC_SMBUS_BYTE_DATA
	.word	.LC5
	.word	GFP_KERNEL
	.word	sii902x_regmap_config
	.word	GPIOD_OUT_LOW
	.word	.LC1
	.word	SII902X_REG_TPI_RQB
	.word	SII902X_INT_STATUS
	.word	SII902X_INT_ENABLE
	.word	SII902X_HOTPLUG_EVENT
	.word	sii902x_interrupt
	.word	IRQF_ONESHOT
	.word	sii902x_bridge_funcs
	.word	default_sii902x_timings
	.word	sii902x_i2c_bypass_deselect
	.word	sii902x_i2c_bypass_select
	.word	I2C_MUX_GATE
	.word	ENOMEM
	.word	.LC0
	.word	EIO
	.word	.LC2
	.word	.LC4
	.word	EINVAL
	.word	.LC3
	.size	sii902x_probe, .-sii902x_probe
	.comm	sii902x_regmap_config,4,4
	.comm	sii902x_interrupt,4,4
	.comm	sii902x_i2c_bypass_select,4,4
	.comm	sii902x_i2c_bypass_deselect,4,4
	.comm	sii902x_bridge_funcs,4,4
	.comm	default_sii902x_timings,4,4
	.comm	SII902X_REG_TPI_RQB,4,4
	.comm	SII902X_INT_STATUS,4,4
	.comm	SII902X_INT_ENABLE,4,4
	.comm	SII902X_HOTPLUG_EVENT,4,4
	.comm	IRQF_ONESHOT,4,4
	.comm	I2C_MUX_GATE,4,4
	.comm	I2C_FUNC_SMBUS_BYTE_DATA,4,4
	.comm	GPIOD_OUT_LOW,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
