	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx_pmx_set
_imx_pmx_set:                           ## @imx_pmx_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r13
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_pinctrl_generic_get_group
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_pinmux_generic_get_function
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movl	(%r12), %r15d
	movl	16(%r12), %ecx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %edi
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	testq	%r15, %r15
	je	LBB0_8
## %bb.4:
	shlq	$2, %r15
	xorl	%ebx, %ebx
	movq	_IMX_USE_SCU@GOTPCREL(%rip), %r14
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$4, %rbx
	cmpq	%rbx, %r15
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	testl	%eax, (%r13)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r12), %rsi
	addq	%rbx, %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_imx_pmx_set_one_pin_mmio
	testl	%eax, %eax
	je	LBB0_7
	jmp	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enable function %s group %s\n"

	.comm	_IMX_USE_SCU,4,2                ## @IMX_USE_SCU
	.no_dead_strip	_imx_pmx_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx_pmx_set
_imx_pmx_set:                           ; @imx_pmx_set
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_pinctrl_dev_get_drvdata
	mov	x19, x0
	ldr	x23, [x0, #8]
	mov	x0, x22
	mov	x1, x20
	bl	_pinctrl_generic_get_group
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	mov	x0, x22
	mov	x1, x21
	bl	_pinmux_generic_get_function
	cbz	x0, LBB0_7
; %bb.2:
	ldr	w22, [x20]
	ldr	w8, [x19]
	ldr	w2, [x0]
	ldr	w3, [x20, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_dev_dbg
	cbz	w22, LBB0_8
; %bb.3:
	mov	x21, #0
	lsl	x22, x22, #2
Lloh2:
	adrp	x24, _IMX_USE_SCU@GOTPAGE
Lloh3:
	ldr	x24, [x24, _IMX_USE_SCU@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #4
	cmp	x22, x21
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #8]
	add	x1, x8, x21
	mov	x0, x19
	bl	_imx_pmx_set_one_pin_mmio
	cbz	w0, LBB0_4
	b	LBB0_9
LBB0_7:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enable function %s group %s\n"

	.comm	_IMX_USE_SCU,4,2                ; @IMX_USE_SCU
	.no_dead_strip	_imx_pmx_set
.subsections_via_symbols
