	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function af9013_select
_af9013_select:                         ## @af9013_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_i2c_mux_priv
	movq	%rax, %rbx
	movq	16(%rax), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	(%rbx), %rax
	movq	_AF9013_TS_MODE_USB@GOTPCREL(%rip), %rcx
	movl	8(%rbx), %edi
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	$119831, %esi                   ## imm = 0x1D417
	movl	$8, %edx
	movl	$8, %ecx
	jmp	LBB0_3
LBB0_2:
	movl	$120327, %esi                   ## imm = 0x1D607
	movl	$4, %edx
	movl	$4, %ecx
LBB0_3:
	callq	_regmap_update_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_AF9013_TS_MODE_USB,8,3         ## @AF9013_TS_MODE_USB
L_.str.1:                               ## @.str.1
	.asciz	"failed %d\n"

	.no_dead_strip	_af9013_select
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function af9013_select
_af9013_select:                         ; @af9013_select
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	w21, #54295
	movk	w21, #1, lsl #16
	bl	_i2c_mux_priv
	mov	x20, x0
	ldr	x19, [x0, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _AF9013_TS_MODE_USB@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AF9013_TS_MODE_USB@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	w0, [x20, #8]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w1, #54295
	movk	w1, #1, lsl #16
	mov	w2, #8
	mov	w3, #8
	b	LBB0_3
LBB0_2:
	add	w1, w21, #496
	mov	w2, #4
	mov	w3, #4
LBB0_3:
	bl	_regmap_update_bits
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.4:
	str	x20, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_5:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_AF9013_TS_MODE_USB,8,3         ; @AF9013_TS_MODE_USB
l_.str.1:                               ; @.str.1
	.asciz	"failed %d\n"

	.no_dead_strip	_af9013_select
.subsections_via_symbols
