	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_mux_reg_set
_i2c_mux_reg_set:                       ## @i2c_mux_reg_set
	.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
	movl	%esi, %eax
	movl	4(%rdi), %esi
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movl	(%rdi), %ecx
	xorl	%r14d, %r14d
	cmpl	$1, %ecx
	je	LBB0_15
## %bb.3:
	cmpl	$2, %ecx
	je	LBB0_10
## %bb.4:
	cmpl	$4, %ecx
	jne	LBB0_17
## %bb.5:
	cmpl	$0, 12(%rbx)
	je	LBB0_7
## %bb.6:
	movl	%eax, %edi
	callq	_iowrite32
	cmpl	$0, 8(%rbx)
	jne	LBB0_17
	jmp	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_17
LBB0_15:
	movl	%eax, %edi
	callq	_iowrite8
	cmpl	$0, 8(%rbx)
	jne	LBB0_17
## %bb.16:
	movl	4(%rbx), %edi
	callq	_ioread8
	jmp	LBB0_17
LBB0_10:
	cmpl	$0, 12(%rbx)
	je	LBB0_12
## %bb.11:
	movl	%eax, %edi
	callq	_iowrite16
	cmpl	$0, 8(%rbx)
	jne	LBB0_17
	jmp	LBB0_14
LBB0_7:
	movl	%eax, %edi
	callq	_iowrite32be
	cmpl	$0, 8(%rbx)
	jne	LBB0_17
LBB0_9:
	movl	4(%rbx), %edi
	callq	_ioread32
	jmp	LBB0_17
LBB0_12:
	movl	%eax, %edi
	callq	_iowrite16be
	cmpl	$0, 8(%rbx)
	jne	LBB0_17
LBB0_14:
	movl	4(%rbx), %edi
	callq	_ioread16
LBB0_17:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_i2c_mux_reg_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_mux_reg_set
_i2c_mux_reg_set:                       ; @i2c_mux_reg_set
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x1
	ldr	w1, [x0, #4]
	cbz	w1, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	w9, [x0]
	cmp	w9, #1
	b.eq	LBB0_7
; %bb.2:
	cmp	w9, #2
	b.eq	LBB0_9
; %bb.3:
	cmp	w9, #4
	b.ne	LBB0_15
; %bb.4:
	ldr	w9, [x19, #12]
	cbz	w9, LBB0_11
; %bb.5:
	mov	x0, x8
	bl	_iowrite32
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_15
	b	LBB0_12
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_7:
	mov	x0, x8
	bl	_iowrite8
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_15
; %bb.8:
	ldr	w0, [x19, #4]
	bl	_ioread8
	b	LBB0_15
LBB0_9:
	ldr	w9, [x19, #12]
	cbz	w9, LBB0_13
; %bb.10:
	mov	x0, x8
	bl	_iowrite16
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_15
	b	LBB0_14
LBB0_11:
	mov	x0, x8
	bl	_iowrite32be
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_15
LBB0_12:
	ldr	w0, [x19, #4]
	bl	_ioread32
	b	LBB0_15
LBB0_13:
	mov	x0, x8
	bl	_iowrite16be
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_15
LBB0_14:
	ldr	w0, [x19, #4]
	bl	_ioread16
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_i2c_mux_reg_set
.subsections_via_symbols
