	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pca9541_arbitrate
_pca9541_arbitrate:                     ## @pca9541_arbitrate
	.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
	movq	%rdi, %r14
	callq	_i2c_get_clientdata
	movq	%rax, %rdi
	callq	_i2c_mux_priv
	movq	%rax, %r15
	movq	_PCA9541_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_pca9541_reg_read
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movl	%ebx, %edi
	callq	_busoff
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	_PCA9541_ISTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pca9541_reg_read
	movq	_PCA9541_ISTAT_NMYTEST@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movl	4(%r15), %edi
	callq	_time_is_before_eq_jiffies
	testq	%rax, %rax
	je	LBB0_10
LBB0_4:
	movl	(%r12), %esi
	movq	_pca9541_control@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andl	$15, %ebx
	movq	_PCA9541_CTL_NTESTON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax,%rbx,4), %edx
	movq	%r14, %rdi
	callq	_pca9541_reg_write
	movq	_SELECT_DELAY_SHORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_5:
	movl	%ebx, %r15d
	jmp	LBB0_13
LBB0_6:
	movl	%ebx, %edi
	callq	_mybus
	testq	%rax, %rax
	je	LBB0_14
## %bb.7:
	movq	_PCA9541_CTL_NTESTON@GOTPCREL(%rip), %rcx
	movq	_PCA9541_CTL_BUSINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movl	$1, %r15d
	testl	%ebx, %eax
	je	LBB0_13
## %bb.8:
	movl	(%r12), %esi
	notl	%eax
	andl	%eax, %ebx
	movq	%r14, %rdi
	movl	%ebx, %edx
LBB0_9:
	callq	_pca9541_reg_write
	jmp	LBB0_13
LBB0_10:
	movq	_SELECT_DELAY_LONG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
LBB0_11:
	movl	%eax, (%r15)
LBB0_12:
	xorl	%r15d, %r15d
LBB0_13:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_SELECT_DELAY_LONG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movl	4(%r15), %edi
	callq	_time_is_before_eq_jiffies
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_pca9541_control@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andl	$15, %ebx
	movq	_PCA9541_CTL_BUSINIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax,%rbx,4), %edx
	movl	(%r12), %esi
	movq	_PCA9541_CTL_NTESTON@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_pca9541_reg_write
	jmp	LBB0_12
LBB0_16:
	movq	_PCA9541_CTL_NTESTON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r15d, %r15d
	testl	%ebx, %edx
	jne	LBB0_13
## %bb.17:
	movl	(%r12), %esi
	orl	%ebx, %edx
	movq	%r14, %rdi
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_PCA9541_CONTROL,4,2            ## @PCA9541_CONTROL
	.comm	_PCA9541_ISTAT,4,2              ## @PCA9541_ISTAT
	.comm	_PCA9541_ISTAT_NMYTEST,4,2      ## @PCA9541_ISTAT_NMYTEST
	.comm	_pca9541_control,8,3            ## @pca9541_control
	.comm	_PCA9541_CTL_NTESTON,4,2        ## @PCA9541_CTL_NTESTON
	.comm	_SELECT_DELAY_SHORT,4,2         ## @SELECT_DELAY_SHORT
	.comm	_SELECT_DELAY_LONG,4,2          ## @SELECT_DELAY_LONG
	.comm	_PCA9541_CTL_BUSINIT,4,2        ## @PCA9541_CTL_BUSINIT
	.no_dead_strip	_pca9541_arbitrate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pca9541_arbitrate
_pca9541_arbitrate:                     ; @pca9541_arbitrate
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_i2c_get_clientdata
	bl	_i2c_mux_priv
	mov	x21, x0
Lloh0:
	adrp	x22, _PCA9541_CONTROL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PCA9541_CONTROL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_pca9541_reg_read
	mov	x20, x0
	tbnz	w0, #31, LBB0_15
; %bb.1:
	mov	x0, x20
	bl	_busoff
	cbz	x0, LBB0_5
; %bb.2:
Lloh2:
	adrp	x8, _PCA9541_ISTAT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCA9541_ISTAT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pca9541_reg_read
Lloh5:
	adrp	x8, _PCA9541_ISTAT_NMYTEST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCA9541_ISTAT_NMYTEST@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x21, #4]
	bl	_time_is_before_eq_jiffies
	cbz	x0, LBB0_8
LBB0_4:
	ldr	w1, [x22]
Lloh8:
	adrp	x8, _pca9541_control@GOTPAGE
Lloh9:
	ldr	x8, [x8, _pca9541_control@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	and	w9, w20, #0xf
	ldr	w8, [x8, w9, uxtw #2]
Lloh11:
	adrp	x9, _PCA9541_CTL_NTESTON@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PCA9541_CTL_NTESTON@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_pca9541_reg_write
	mov	w20, #0
Lloh14:
	adrp	x8, _SELECT_DELAY_SHORT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SELECT_DELAY_SHORT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x21]
	b	LBB0_15
LBB0_5:
	mov	x0, x20
	bl	_mybus
	cbz	x0, LBB0_9
; %bb.6:
Lloh17:
	adrp	x8, _PCA9541_CTL_NTESTON@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PCA9541_CTL_NTESTON@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _PCA9541_CTL_BUSINIT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _PCA9541_CTL_BUSINIT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_12
; %bb.7:
	ldr	w1, [x22]
	bic	w2, w20, w8
	mov	x0, x19
	bl	_pca9541_reg_write
	mov	w20, #1
	b	LBB0_15
LBB0_8:
	mov	w20, #0
Lloh23:
	adrp	x8, _SELECT_DELAY_LONG@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SELECT_DELAY_LONG@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	lsl	w8, w8, #1
	str	w8, [x21]
	b	LBB0_15
LBB0_9:
Lloh26:
	adrp	x8, _SELECT_DELAY_LONG@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SELECT_DELAY_LONG@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x21]
	ldr	w0, [x21, #4]
	bl	_time_is_before_eq_jiffies
	cbz	x0, LBB0_13
; %bb.10:
	ldr	w1, [x22]
Lloh29:
	adrp	x8, _pca9541_control@GOTPAGE
Lloh30:
	ldr	x8, [x8, _pca9541_control@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	and	w9, w20, #0xf
	ldr	w8, [x8, w9, uxtw #2]
Lloh32:
	adrp	x9, _PCA9541_CTL_BUSINIT@GOTPAGE
Lloh33:
	ldr	x9, [x9, _PCA9541_CTL_BUSINIT@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh35:
	adrp	x9, _PCA9541_CTL_NTESTON@GOTPAGE
Lloh36:
	ldr	x9, [x9, _PCA9541_CTL_NTESTON@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	orr	w2, w8, w9
LBB0_11:
	mov	x0, x19
	bl	_pca9541_reg_write
	b	LBB0_14
LBB0_12:
	mov	w20, #1
	b	LBB0_15
LBB0_13:
Lloh38:
	adrp	x8, _PCA9541_CTL_NTESTON@GOTPAGE
Lloh39:
	ldr	x8, [x8, _PCA9541_CTL_NTESTON@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_16
LBB0_14:
	mov	w20, #0
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_16:
	ldr	w1, [x22]
	orr	w2, w8, w20
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_PCA9541_CONTROL,4,2            ; @PCA9541_CONTROL
	.comm	_PCA9541_ISTAT,4,2              ; @PCA9541_ISTAT
	.comm	_PCA9541_ISTAT_NMYTEST,4,2      ; @PCA9541_ISTAT_NMYTEST
	.comm	_pca9541_control,8,3            ; @pca9541_control
	.comm	_PCA9541_CTL_NTESTON,4,2        ; @PCA9541_CTL_NTESTON
	.comm	_SELECT_DELAY_SHORT,4,2         ; @SELECT_DELAY_SHORT
	.comm	_SELECT_DELAY_LONG,4,2          ; @SELECT_DELAY_LONG
	.comm	_PCA9541_CTL_BUSINIT,4,2        ; @PCA9541_CTL_BUSINIT
	.no_dead_strip	_pca9541_arbitrate
.subsections_via_symbols
