	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_arbitrator_select
_i2c_arbitrator_select:                 ## @i2c_arbitrator_select
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_i2c_mux_priv
	movq	%rax, %r12
	movq	_jiffies@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movl	(%rax), %edi
	callq	_usecs_to_jiffies
                                        ## kill: def $eax killed $eax def $rax
	addl	%ebx, %eax
	incl	%eax
	movslq	%eax, %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	12(%r12), %edi
	xorl	%esi, %esi
	callq	_gpiod_set_value
	movl	4(%r12), %edi
	leal	(%rdi,%rdi), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_usleep_range
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_7
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movl	12(%r12), %edi
	movl	$1, %esi
	callq	_gpiod_set_value
	movl	8(%r12), %edi
	callq	_udelay
	movl	(%r13), %ebx
	movl	4(%r12), %edi
	callq	_usecs_to_jiffies
                                        ## kill: def $eax killed $eax def $rax
	addl	%ebx, %eax
	incl	%eax
	movslq	%eax, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	movl	16(%r12), %edi
	callq	_gpiod_get_value
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=2
	movl	$50, %edi
	movl	$200, %esi
	callq	_usleep_range
	jmp	LBB0_2
LBB0_4:
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	12(%r12), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_gpiod_set_value
	movl	8(%r12), %edi
	callq	_udelay
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,4,2                    ## @jiffies
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not claim bus, timeout\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_i2c_arbitrator_select
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_arbitrator_select
_i2c_arbitrator_select:                 ; @i2c_arbitrator_select
	.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
	mov	x19, x0
	bl	_i2c_mux_priv
	mov	x20, x0
Lloh0:
	adrp	x23, _jiffies@GOTPAGE
Lloh1:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	w21, [x23]
	ldr	w0, [x0]
	bl	_usecs_to_jiffies
	add	w8, w21, w0
	add	w8, w8, #1
	sxtw	x21, w8
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x20, #12]
	mov	w1, #0
	bl	_gpiod_set_value
	ldr	w0, [x20, #4]
	lsl	w1, w0, #1
	bl	_usleep_range
	ldr	w0, [x23]
	mov	x1, x21
	bl	_time_before
	cbz	x0, LBB0_6
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	ldr	w0, [x20, #12]
	mov	w1, #1
	bl	_gpiod_set_value
	ldr	w0, [x20, #8]
	bl	_udelay
	ldr	w22, [x23]
	ldr	w0, [x20, #4]
	bl	_usecs_to_jiffies
	add	w8, w22, w0
	add	w8, w8, #1
	sxtw	x22, w8
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x23]
	mov	x1, x22
	bl	_time_before
	cbz	x0, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	ldr	w0, [x20, #16]
	bl	_gpiod_get_value
	cbz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=2
	mov	w0, #50
	mov	w1, #200
	bl	_usleep_range
	b	LBB0_3
LBB0_6:
	ldr	w0, [x20, #12]
	mov	w1, #0
	bl	_gpiod_set_value
	ldr	w0, [x20, #8]
	bl	_udelay
	ldr	w0, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh4:
	adrp	x8, _EBUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,4,2                    ; @jiffies
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not claim bus, timeout\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_i2c_arbitrator_select
.subsections_via_symbols
