	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function owl_pin_config_set
_owl_pin_config_set:                    ## @owl_pin_config_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movl	%esi, %r15d
	callq	_pinctrl_dev_get_drvdata
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movq	8(%rax), %rax
	movl	%r15d, %r15d
	shlq	$2, %r15
	addq	8(%rax), %r15
	movl	%r12d, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%r12,8), %rdi
	callq	_pinconf_to_config_param
	movl	%eax, %r13d
	movq	(%r14,%r12,8), %rdi
	callq	_pinconf_to_config_argument
	movl	%eax, -44(%rbp)
	movq	%r15, %rdi
	movl	%r13d, %esi
	leaq	-56(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	leaq	-48(%rbp), %r8
	callq	_owl_pad_pinconf_reg
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movl	%r13d, %esi
	leaq	-44(%rbp), %rdx
	callq	*%rcx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_raw_spin_lock_irqsave
	movl	-56(%rbp), %esi
	movl	-44(%rbp), %edx
	movl	-52(%rbp), %ecx
	movl	-48(%rbp), %r8d
	movq	%rbx, %rdi
	callq	_owl_write_field
	movq	%rbx, %rdi
	callq	_raw_spin_unlock_irqrestore
	incq	%r12
	cmpq	%r12, -64(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_2
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.no_dead_strip	_owl_pin_config_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function owl_pin_config_set
_owl_pin_config_set:                    ; @owl_pin_config_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x3
	mov	x19, x2
	mov	x21, x1
	bl	_pinctrl_dev_get_drvdata
	cbz	w22, LBB0_6
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8, #8]
	add	x21, x8, w21, uxtw #2
	mov	w23, w22
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	bl	_pinconf_to_config_param
	mov	x22, x0
	ldr	x0, [x19]
	bl	_pinconf_to_config_argument
	str	w0, [sp]
	add	x2, sp, #12
	add	x3, sp, #8
	add	x4, sp, #4
	mov	x0, x21
	mov	x1, x22
	bl	_owl_pad_pinconf_reg
	cbnz	w0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x2, sp
	mov	x0, x21
	mov	x1, x22
	blr	x8
	cbnz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_raw_spin_lock_irqsave
	ldp	w3, w1, [sp, #8]
	ldp	w2, w4, [sp]
	mov	x0, x20
	bl	_owl_write_field
	mov	x0, x20
	bl	_raw_spin_unlock_irqrestore
	add	x19, x19, #8
	subs	x23, x23, #1
	b.ne	LBB0_2
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh0:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.no_dead_strip	_owl_pin_config_set
.subsections_via_symbols
