	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adg792a_set
_adg792a_set:                           ## @adg792a_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movl	4(%rax), %edi
	callq	_to_i2c_client
	movq	%rax, %r14
	movq	(%rbx), %rax
	cmpl	$1, (%rax)
	jne	LBB0_4
## %bb.1:
	movq	_MUX_IDLE_DISCONNECT@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	_ADG792A_DISABLE_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_8
LBB0_4:
	movq	%rbx, %rdi
	callq	_mux_control_get_index
	movq	_MUX_IDLE_DISCONNECT@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jne	LBB0_6
## %bb.5:
	movl	%eax, %edi
	callq	_ADG792A_DISABLE
	jmp	LBB0_7
LBB0_3:
	movl	%r15d, %edi
	callq	_ADG792A_MUX_ALL
	jmp	LBB0_7
LBB0_6:
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_ADG792A_MUX
LBB0_7:
	movl	%eax, %esi
LBB0_8:
	movq	%r14, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_adg792a_write_cmd              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MUX_IDLE_DISCONNECT,4,2        ## @MUX_IDLE_DISCONNECT
	.comm	_ADG792A_DISABLE_ALL,4,2        ## @ADG792A_DISABLE_ALL
	.no_dead_strip	_adg792a_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adg792a_set
_adg792a_set:                           ; @adg792a_set
	.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	x20, x1
	mov	x21, x0
	ldr	x8, [x0]
	ldr	w0, [x8, #4]
	bl	_to_i2c_client
	mov	x19, x0
	ldr	x8, [x21]
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _MUX_IDLE_DISCONNECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MUX_IDLE_DISCONNECT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _ADG792A_DISABLE_ALL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADG792A_DISABLE_ALL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	b	LBB0_8
LBB0_3:
	mov	x0, x21
	bl	_mux_control_get_index
Lloh6:
	adrp	x8, _MUX_IDLE_DISCONNECT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MUX_IDLE_DISCONNECT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_6
; %bb.4:
	bl	_ADG792A_DISABLE
	b	LBB0_7
LBB0_5:
	mov	x0, x20
	bl	_ADG792A_MUX_ALL
	b	LBB0_7
LBB0_6:
	mov	x1, x20
	bl	_ADG792A_MUX
LBB0_7:
	mov	x1, x0
LBB0_8:
	mov	x0, x19
	mov	w2, #0
	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
	b	_adg792a_write_cmd
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MUX_IDLE_DISCONNECT,4,2        ; @MUX_IDLE_DISCONNECT
	.comm	_ADG792A_DISABLE_ALL,4,2        ; @ADG792A_DISABLE_ALL
	.no_dead_strip	_adg792a_set
.subsections_via_symbols
