	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function da850_pupd_pin_config_group_get
_da850_pupd_pin_config_group_get:       ## @da850_pupd_pin_config_group_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	%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
	movq	%rdx, %r14
	movl	%esi, %r15d
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r12
	movq	(%r14), %rdi
	callq	_pinconf_to_config_param
	movl	%eax, %r13d
	movq	_DA850_PUPD_ENA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r12), %rdi
	callq	_readl
	movl	%eax, %ebx
	notl	%ebx
	movl	%r15d, %edi
	callq	_BIT
	andl	%ebx, %eax
	setne	%cl
	leal	-128(%r13), %edx
	cmpl	$2, %edx
	jae	LBB0_1
## %bb.3:
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	xorl	%ecx, %ecx
	jmp	LBB0_6
LBB0_1:
	cmpl	$130, %r13d
	je	LBB0_6
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_5:
	movq	_DA850_PUPD_SEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r12), %rdi
	callq	_readl
	xorl	%ebx, %ebx
	cmpl	$129, %r13d
	sete	%bl
	negl	%ebx
	xorl	%eax, %ebx
	movl	%r15d, %edi
	callq	_BIT
	testl	%eax, %ebx
	setne	%cl
LBB0_6:
	movzbl	%cl, %esi
	movl	%r13d, %edi
	callq	_pinconf_to_config_packed
	movq	%rax, (%r14)
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DA850_PUPD_ENA,8,3             ## @DA850_PUPD_ENA
	.comm	_DA850_PUPD_SEL,8,3             ## @DA850_PUPD_SEL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_da850_pupd_pin_config_group_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function da850_pupd_pin_config_group_get
_da850_pupd_pin_config_group_get:       ; @da850_pupd_pin_config_group_get
	.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	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]
Lloh0:
	adrp	x9, _DA850_PUPD_ENA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DA850_PUPD_ENA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x23, x0
	mov	x0, x21
	bl	_BIT
	bics	w8, w0, w23
	cset	w1, ne
	sub	w9, w20, #128
	cmp	w9, #2
	b.hs	LBB0_3
; %bb.1:
	cbz	w8, LBB0_5
; %bb.2:
	mov	w1, #0
	b	LBB0_6
LBB0_3:
	cmp	w20, #130
	b.eq	LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	ldr	x8, [x22]
Lloh6:
	adrp	x9, _DA850_PUPD_SEL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DA850_PUPD_SEL@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	cmp	w20, #129
	cinv	w22, w0, eq
	mov	x0, x21
	bl	_BIT
	tst	w22, w0
	cset	w1, ne
LBB0_6:
	mov	x0, x20
	bl	_pinconf_to_config_packed
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DA850_PUPD_ENA,8,3             ; @DA850_PUPD_ENA
	.comm	_DA850_PUPD_SEL,8,3             ; @DA850_PUPD_SEL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_da850_pupd_pin_config_group_get
.subsections_via_symbols
