	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m88ds3103_select
_m88ds3103_select:                      ## @m88ds3103_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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_i2c_mux_priv
	movq	(%rax), %r14
	movl	$2, -40(%rbp)
	leaq	L_.str(%rip), %rax
	movq	%rax, -32(%rbp)
	movl	$0, -24(%rbp)
	movl	8(%r14), %eax
	movl	%eax, -20(%rbp)
	movl	4(%r14), %edi
	leaq	-40(%rbp), %rsi
	movl	$1, %edx
	callq	___i2c_transfer
	movl	%eax, %ebx
	xorl	%eax, %eax
	cmpl	$1, %ebx
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_warn
	movq	_EREMOTEIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	testl	%ebx, %ebx
	cmovsl	%ebx, %eax
LBB0_2:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\003\021"

L_.str.1:                               ## @.str.1
	.asciz	"i2c wr failed=%d\n"

	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.no_dead_strip	_m88ds3103_select
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m88ds3103_select
_m88ds3103_select:                      ; @m88ds3103_select
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	bl	_i2c_mux_priv
	ldr	x19, [x0]
	mov	w8, #2
Lloh0:
	adrp	x9, l_.str@PAGE
Lloh1:
	add	x9, x9, l_.str@PAGEOFF
	str	w8, [sp, #8]
	str	x9, [sp, #16]
	str	wzr, [sp, #24]
	ldr	w8, [x19, #8]
	str	w8, [sp, #28]
	ldr	w0, [x19, #4]
	add	x1, sp, #8
	mov	w2, #1
	bl	___i2c_transfer
	mov	x20, x0
	mov	w0, #0
	cmp	w20, #1
	b.eq	LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_warn
Lloh4:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w20, #0
	csneg	w0, w20, w8, lt
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\003\021"

l_.str.1:                               ; @.str.1
	.asciz	"i2c wr failed=%d\n"

	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.no_dead_strip	_m88ds3103_select
.subsections_via_symbols
