	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sii902x_i2c_bypass_deselect
_sii902x_i2c_bypass_deselect:           ## @sii902x_i2c_bypass_deselect
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_i2c_mux_priv
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$30, %edi
	callq	_udelay
	movl	$-4, %ebx
	movq	_SII902X_SYS_CTRL_DATA@GOTPCREL(%rip), %r14
	leaq	-44(%rbp), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movl	(%r14), %esi
	movq	%r12, %rdx
	callq	_sii902x_read_unlocked
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%rbx), %eax
	testl	%ebx, %ebx
	movl	%eax, %ebx
	jne	LBB0_1
LBB0_3:
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_13
LBB0_5:
	movq	(%r15), %rdi
	movl	(%r14), %esi
	movq	_SII902X_SYS_CTRL_DDC_BUS_REQ@GOTPCREL(%rip), %rax
	movq	_SII902X_SYS_CTRL_DDC_BUS_GRTD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_sii902x_update_bits_unlocked
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_6
LBB0_13:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_SII902X_I2C_BUS_ACQUISITION_TIMEOUT_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r12
	addq	%rbx, %r12
	leaq	-44(%rbp), %rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movl	(%r14), %esi
	movq	%rbx, %rdx
	callq	_sii902x_read_unlocked
	testl	%eax, %eax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_SII902X_SYS_CTRL_DDC_BUS_GRTD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SII902X_SYS_CTRL_DDC_BUS_REQ@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	xorl	%r13d, %r13d
	testl	%eax, -44(%rbp)
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r12, %rsi
	callq	_time_before
	testq	%rax, %rax
	jne	LBB0_7
## %bb.11:
	movq	_SII902X_SYS_CTRL_DDC_BUS_GRTD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SII902X_SYS_CTRL_DDC_BUS_REQ@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_13
## %bb.12:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r13d, %r13d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_13
LBB0_8:
	movl	%eax, %r13d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_SII902X_SYS_CTRL_DATA,4,2      ## @SII902X_SYS_CTRL_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read status (%d)\n"

	.comm	_SII902X_SYS_CTRL_DDC_BUS_REQ,4,2 ## @SII902X_SYS_CTRL_DDC_BUS_REQ
	.comm	_SII902X_SYS_CTRL_DDC_BUS_GRTD,4,2 ## @SII902X_SYS_CTRL_DDC_BUS_GRTD
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_SII902X_I2C_BUS_ACQUISITION_TIMEOUT_MS,4,2 ## @SII902X_I2C_BUS_ACQUISITION_TIMEOUT_MS
L_.str.1:                               ## @.str.1
	.asciz	"failed to release the i2c bus\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_sii902x_i2c_bypass_deselect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sii902x_i2c_bypass_deselect
_sii902x_i2c_bypass_deselect:           ; @sii902x_i2c_bypass_deselect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	bl	_i2c_mux_priv
	mov	x20, x0
	ldr	x19, [x0]
	mov	w0, #30
	bl	_udelay
	ldr	x0, [x20]
Lloh0:
	adrp	x23, _SII902X_SYS_CTRL_DATA@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SII902X_SYS_CTRL_DATA@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #12
	bl	_sii902x_read_unlocked
	cmp	w0, #0
	cset	w8, ne
	cbz	w0, LBB0_12
; %bb.1:
	ldr	x0, [x20]
	ldr	w1, [x23]
	add	x2, sp, #12
	bl	_sii902x_read_unlocked
	cmp	w0, #0
	cset	w8, ne
	cbz	w0, LBB0_12
; %bb.2:
	ldr	x0, [x20]
	ldr	w1, [x23]
	add	x2, sp, #12
	bl	_sii902x_read_unlocked
	cmp	w0, #0
	cset	w8, ne
	cbz	w0, LBB0_12
; %bb.3:
	ldr	x0, [x20]
	ldr	w1, [x23]
	add	x2, sp, #12
	bl	_sii902x_read_unlocked
	cmp	w0, #0
	cset	w8, ne
	cbz	w0, LBB0_12
; %bb.4:
	ldr	x0, [x20]
	ldr	w1, [x23]
	add	x2, sp, #12
	bl	_sii902x_read_unlocked
	mov	x21, x0
	cmp	w0, #0
	cset	w8, ne
	cbnz	w8, LBB0_13
LBB0_5:
	ldr	x0, [x20]
Lloh2:
	adrp	x24, _SII902X_SYS_CTRL_DDC_BUS_REQ@GOTPAGE
Lloh3:
	ldr	x24, [x24, _SII902X_SYS_CTRL_DDC_BUS_REQ@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w8, [x24]
Lloh4:
	adrp	x25, _SII902X_SYS_CTRL_DDC_BUS_GRTD@GOTPAGE
Lloh5:
	ldr	x25, [x25, _SII902X_SYS_CTRL_DDC_BUS_GRTD@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w2, w9, w8
	mov	w3, #0
	bl	_sii902x_update_bits_unlocked
	mov	x21, x0
	cbnz	w0, LBB0_14
; %bb.6:
Lloh6:
	adrp	x26, _jiffies@GOTPAGE
Lloh7:
	ldr	x26, [x26, _jiffies@GOTPAGEOFF]
	ldr	x21, [x26]
Lloh8:
	adrp	x8, _SII902X_I2C_BUS_ACQUISITION_TIMEOUT_MS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SII902X_I2C_BUS_ACQUISITION_TIMEOUT_MS@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x22, x0, x21
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	ldr	w1, [x23]
	add	x2, sp, #12
	bl	_sii902x_read_unlocked
	cbnz	w0, LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x24]
	ldr	w10, [x25]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x26]
	mov	x1, x22
	bl	_time_before
	cbnz	x0, LBB0_7
; %bb.10:
	ldr	w8, [sp, #12]
	ldr	w9, [x24]
	ldr	w10, [x25]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_15
; %bb.11:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh13:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_14
LBB0_12:
	mov	x21, x0
	cbz	w8, LBB0_5
LBB0_13:
	str	x21, [sp]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_14:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_15:
	mov	w21, #0
	b	LBB0_14
LBB0_16:
	mov	x21, x0
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SII902X_SYS_CTRL_DATA,4,2      ; @SII902X_SYS_CTRL_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read status (%d)\n"

	.comm	_SII902X_SYS_CTRL_DDC_BUS_REQ,4,2 ; @SII902X_SYS_CTRL_DDC_BUS_REQ
	.comm	_SII902X_SYS_CTRL_DDC_BUS_GRTD,4,2 ; @SII902X_SYS_CTRL_DDC_BUS_GRTD
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_SII902X_I2C_BUS_ACQUISITION_TIMEOUT_MS,4,2 ; @SII902X_I2C_BUS_ACQUISITION_TIMEOUT_MS
l_.str.1:                               ; @.str.1
	.asciz	"failed to release the i2c bus\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_sii902x_i2c_bypass_deselect
.subsections_via_symbols
