	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function byt_set_mux
_byt_set_mux:                           ## @byt_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, %ebx
	movl	%esi, %r15d
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movl	%ebx, %edx
	shlq	$4, %rdx
	movl	(%rcx,%rdx), %r14d
	movq	8(%rcx,%rdx), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%rcx, %rdx
	callq	_byt_set_group_mixed_mux
	jmp	LBB0_6
LBB0_2:
	movq	8(%rax), %rax
	movl	%r15d, %ecx
	movl	(%rax,%rcx,4), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	%r12, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	movl	%r14d, %ecx
	jmp	LBB0_5
LBB0_3:
	movq	_BYT_DEFAULT_GPIO_MUX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
LBB0_5:
	callq	_byt_set_group_simple_mux
LBB0_6:
	xorl	%eax, %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	"gpio"

	.comm	_BYT_DEFAULT_GPIO_MUX,4,2       ## @BYT_DEFAULT_GPIO_MUX
	.no_dead_strip	_byt_set_mux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function byt_set_mux
_byt_set_mux:                           ; @byt_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	x20, x2
	mov	x21, x1
	bl	_pinctrl_dev_get_drvdata
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x9, [x8]
	add	x9, x9, w20, uxtw #4
	ldp	x20, x2, [x9]
	cbz	x2, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	mov	x3, x2
	bl	_byt_set_group_mixed_mux
	b	LBB0_6
LBB0_2:
	ldr	x8, [x8, #8]
	ldr	w0, [x8, w21, uxtw #2]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	mov	x3, x20
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x8, _BYT_DEFAULT_GPIO_MUX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BYT_DEFAULT_GPIO_MUX@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
LBB0_5:
	bl	_byt_set_group_simple_mux
LBB0_6:
	mov	w0, #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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gpio"

	.comm	_BYT_DEFAULT_GPIO_MUX,4,2       ; @BYT_DEFAULT_GPIO_MUX
	.no_dead_strip	_byt_set_mux
.subsections_via_symbols
