	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function owl_pin_config_get
_owl_pin_config_get:                    ## @owl_pin_config_get
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r12
	movq	(%r14), %rdi
	callq	_pinconf_to_config_param
	movl	%eax, %r15d
	movq	(%r12), %rax
	movl	%ebx, %ebx
	shlq	$2, %rbx
	addq	8(%rax), %rbx
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	leaq	-40(%rbp), %r8
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_owl_pad_pinconf_reg
	testl	%eax, %eax
	je	LBB0_1
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edx
	movl	-40(%rbp), %ecx
	movq	%r12, %rdi
	callq	_owl_read_field
	movl	%eax, -36(%rbp)
	movq	(%r12), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.3:
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	*%rcx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	-36(%rbp), %esi
	movl	%r15d, %edi
	callq	_pinconf_to_config_packed
	movq	%rax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_2:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.no_dead_strip	_owl_pin_config_get
.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_get
_owl_pin_config_get:                    ; @owl_pin_config_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x21, x1
	bl	_pinctrl_dev_get_drvdata
	mov	x22, x0
	ldr	x0, [x19]
	bl	_pinconf_to_config_param
	mov	x20, x0
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	add	x21, x8, w21, uxtw #2
	add	x2, sp, #12
	add	x3, sp, #8
	add	x4, sp, #4
	mov	x0, x21
	mov	x1, x20
	bl	_owl_pad_pinconf_reg
	cbz	w0, LBB0_2
LBB0_1:
	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
	add	sp, sp, #64
	ret
LBB0_2:
	ldp	w2, w1, [sp, #8]
	ldr	w3, [sp, #4]
	mov	x0, x22
	bl	_owl_read_field
	str	w0, [sp]
	ldr	x8, [x22]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x2, sp
	mov	x0, x21
	mov	x1, x20
	blr	x8
	cbnz	w0, LBB0_1
; %bb.4:
	ldr	w1, [sp]
	mov	x0, x20
	bl	_pinconf_to_config_packed
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_1
LBB0_5:
Lloh0:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.no_dead_strip	_owl_pin_config_get
.subsections_via_symbols
