	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pca9541_select_chan
_pca9541_select_chan:                   ## @pca9541_select_chan
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_i2c_mux_priv
	movq	%rax, %r15
	movq	16(%rax), %r14
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ARB2_TIMEOUT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	addq	%rax, %rbx
	movq	_ARB_TIMEOUT@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, 8(%r15)
	movq	_SELECT_DELAY_SHORT@GOTPCREL(%rip), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movslq	%edi, %rax
	imulq	$274877907, %rax, %rdi          ## imm = 0x10624DD3
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$38, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_msleep
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_time_is_after_eq_jiffies
	testq	%rax, %rax
	je	LBB0_8
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_pca9541_arbitrate
	testl	%eax, %eax
	jne	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %edi
	cmpl	(%r12), %edi
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	callq	_udelay
	jmp	LBB0_7
LBB0_8:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%eax, %ecx
	movl	%ecx, %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_ARB2_TIMEOUT,8,3               ## @ARB2_TIMEOUT
	.comm	_ARB_TIMEOUT,8,3                ## @ARB_TIMEOUT
	.comm	_SELECT_DELAY_SHORT,4,2         ## @SELECT_DELAY_SHORT
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_pca9541_select_chan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pca9541_select_chan
_pca9541_select_chan:                   ; @pca9541_select_chan
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_i2c_mux_priv
	mov	x19, x0
	ldr	x20, [x0, #16]
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _ARB2_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ARB2_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x21, x9, x8
Lloh6:
	adrp	x9, _ARB_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ARB_TIMEOUT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x8, x9, x8
	str	x8, [x0, #8]
Lloh9:
	adrp	x22, _SELECT_DELAY_SHORT@GOTPAGE
Lloh10:
	ldr	x22, [x22, _SELECT_DELAY_SHORT@GOTPAGEOFF]
	mov	w23, #19923
	movk	w23, #4194, lsl #16
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	smull	x8, w0, w23
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w0, w8, w9
	bl	_msleep
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_time_is_after_eq_jiffies
	cbz	x0, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_pca9541_arbitrate
	cbnz	w0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_udelay
	b	LBB0_2
LBB0_6:
Lloh11:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_ARB2_TIMEOUT,8,3               ; @ARB2_TIMEOUT
	.comm	_ARB_TIMEOUT,8,3                ; @ARB_TIMEOUT
	.comm	_SELECT_DELAY_SHORT,4,2         ; @SELECT_DELAY_SHORT
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_pca9541_select_chan
.subsections_via_symbols
