	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lochnagar_set_mux
_lochnagar_set_mux:                     ## @lochnagar_set_mux
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %rbx
	movq	16(%rax), %rax
	movq	24(%rbx), %r12
	movl	%r15d, %edx
	movl	%r14d, %ecx
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %r14
	leaq	(%rdx,%rdx,2), %r15
	movl	(%r12,%r15,4), %edx
	cmpl	$128, %edx
	je	LBB0_3
## %bb.1:
	cmpl	$129, %edx
	jne	LBB0_4
## %bb.2:
	movl	(%rbx), %edi
	movl	8(%rax,%rcx), %edx
	movl	8(%r12,%r15,4), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movl	4(%r12,%r15,4), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lochnagar_aif_set_mux          ## TAILCALL
LBB0_3:
	movq	8(%rbx), %rax
	movq	(%r14), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r14
	movl	(%rbx), %edi
	movl	(%r14), %edx
	movl	8(%r12,%r15,4), %ecx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	movl	4(%r12,%r15,4), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lochnagar_pin_set_mux          ## TAILCALL
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set group %s to %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"Set pin %s to %s\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_lochnagar_set_mux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lochnagar_set_mux
_lochnagar_set_mux:                     ; @lochnagar_set_mux
	.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	x21, x2
	mov	x22, x1
	bl	_pinctrl_dev_get_drvdata
	mov	x19, x0
	mov	w8, w22
	ldp	x10, x9, [x0, #16]
	add	x20, x10, w21, uxtw #4
	mov	w11, #12
	umull	x11, w22, w11
	ldr	w11, [x9, x11]
	cmp	w11, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w11, #129
	b.ne	LBB0_4
; %bb.2:
	mov	w11, w21
	ldr	w0, [x19]
	add	x10, x10, x11, lsl #4
	ldr	w2, [x10, #8]
	mov	w10, #12
	madd	x21, x8, x10, x9
	ldr	w3, [x21, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	w2, [x21, #4]
	mov	x0, x19
	mov	x1, x20
	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	_lochnagar_aif_set_mux
LBB0_3:
	ldr	x10, [x19, #8]
	ldr	x11, [x20]
	ldr	x11, [x11]
	ldr	x20, [x10, x11, lsl #3]
	ldr	w0, [x19]
	ldr	w2, [x20]
	mov	w10, #12
	madd	x21, x8, x10, x9
	ldr	w3, [x21, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	ldr	w2, [x21, #4]
	mov	x0, x19
	mov	x1, x20
	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	_lochnagar_pin_set_mux
LBB0_4:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set group %s to %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"Set pin %s to %s\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_lochnagar_set_mux
.subsections_via_symbols
