	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_pmx_set_mux
_atmel_pmx_set_mux:                     ## @atmel_pmx_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, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r12
	movl	(%r14), %edi
	movq	_atmel_functions@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	movl	(%rax,%rcx,4), %edx
	movq	(%r12), %rax
	movl	%r15d, %r15d
	movl	(%rax,%r15,8), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	(%r12), %rax
	movl	4(%rax,%r15,8), %r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_atmel_pin_config_read
	movq	_ATMEL_PIO_CFGR_FUNC_MASK@GOTPCREL(%rip), %rcx
	xorl	%eax, %ebx
	andl	(%rcx), %ebx
	xorl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_dev_dbg
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_atmel_pin_config_write
	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	"enable function %s group %s\n"

	.comm	_atmel_functions,8,3            ## @atmel_functions
	.comm	_ATMEL_PIO_CFGR_FUNC_MASK,4,2   ## @ATMEL_PIO_CFGR_FUNC_MASK
L_.str.1:                               ## @.str.1
	.asciz	"pin: %u, conf: 0x%08x\n"

	.no_dead_strip	_atmel_pmx_set_mux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_pmx_set_mux
_atmel_pmx_set_mux:                     ; @atmel_pmx_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	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_pinctrl_dev_get_drvdata
	mov	x22, x0
Lloh0:
	adrp	x8, _atmel_functions@GOTPAGE
Lloh1:
	ldr	x8, [x8, _atmel_functions@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w2, [x8, w20, uxtw #2]
	ldr	w0, [x21]
	ldr	x8, [x22]
	mov	w9, w19
	lsl	x19, x9, #3
	ldr	w3, [x8, x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	x8, [x22]
	add	x8, x8, x19
	ldr	w19, [x8, #4]
	mov	x0, x21
	mov	x1, x19
	bl	_atmel_pin_config_read
Lloh5:
	adrp	x8, _ATMEL_PIO_CFGR_FUNC_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ATMEL_PIO_CFGR_FUNC_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	bic	w9, w0, w8
	and	w8, w8, w20
	orr	w20, w9, w8
	ldr	w0, [x21]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	bl	_dev_dbg
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_atmel_pin_config_write
	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	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enable function %s group %s\n"

	.comm	_atmel_functions,8,3            ; @atmel_functions
	.comm	_ATMEL_PIO_CFGR_FUNC_MASK,4,2   ; @ATMEL_PIO_CFGR_FUNC_MASK
l_.str.1:                               ; @.str.1
	.asciz	"pin: %u, conf: 0x%08x\n"

	.no_dead_strip	_atmel_pmx_set_mux
.subsections_via_symbols
