	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bm1880_pinconf_cfg_get
_bm1880_pinconf_cfg_get:                ## @bm1880_pinconf_cfg_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, %ebx
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r13
	movq	(%r14), %rdi
	callq	_pinconf_to_config_param
	movl	%eax, %r12d
	leal	(%rbx,%rbx), %eax
	andl	$-4, %eax
	movq	_BM1880_REG_MUX@GOTPCREL(%rip), %rcx
	movslq	%eax, %rdi
	addq	8(%r13), %rdi
	addq	(%rcx), %rdi
	callq	_readl_relaxed
	movl	%eax, %r15d
	leal	-128(%r12), %eax
	cmpl	$5, %eax
	ja	LBB0_7
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movl	%ebx, %edi
	callq	_BM1880_PINCONF_SLEW
	jmp	LBB0_9
LBB0_7:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_4:
	movl	%ebx, %edi
	callq	_BM1880_PINCONF_SCHMITT
	jmp	LBB0_9
LBB0_6:
	movl	%ebx, %edi
	callq	_BM1880_PINCONF_DRV
	movq	(%r13), %rcx
	movl	%ebx, %edx
	movl	(%rcx,%rdx,4), %ebx
	movl	%eax, %edi
	callq	_BIT
	xorl	%esi, %esi
	testl	%r15d, %eax
	setne	%sil
	movl	%ebx, %edi
	callq	_bm1880_pinconf_drv_get
	testl	%eax, %eax
	jns	LBB0_10
	jmp	LBB0_11
LBB0_8:
	movl	%ebx, %edi
	callq	_BM1880_PINCONF_PULLUP
	jmp	LBB0_9
LBB0_2:
	movl	%ebx, %edi
	callq	_BM1880_PINCONF_PULLDOWN
	jmp	LBB0_9
LBB0_3:
	movl	%ebx, %edi
	callq	_BM1880_PINCONF_PULLCTRL
LBB0_9:
	movl	%eax, %edi
	callq	_BIT
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%r15d, %ecx
	setne	%al
LBB0_10:
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_pinconf_to_config_packed
	movq	%rax, (%r14)
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_2
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_BM1880_REG_MUX,8,3             ## @BM1880_REG_MUX
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.no_dead_strip	_bm1880_pinconf_cfg_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bm1880_pinconf_cfg_get
_bm1880_pinconf_cfg_get:                ; @bm1880_pinconf_cfg_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	x22, x1
	bl	_pinctrl_dev_get_drvdata
	mov	x23, x0
	ldr	x0, [x19]
	bl	_pinconf_to_config_param
	mov	x20, x0
	lsl	w8, w22, #1
	and	w8, w8, #0xfffffffc
	ldr	x9, [x23, #8]
Lloh0:
	adrp	x10, _BM1880_REG_MUX@GOTPAGE
Lloh1:
	ldr	x10, [x10, _BM1880_REG_MUX@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	add	x8, x9, w8, sxtw
	add	x0, x8, x10
	bl	_readl_relaxed
	sub	w8, w20, #128
	cmp	w8, #5
	b.hi	LBB0_3
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x22
	bl	_BM1880_PINCONF_SLEW
	b	LBB0_9
LBB0_3:
Lloh5:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w1, w8
	b	LBB0_11
LBB0_4:
	mov	x0, x22
	bl	_BM1880_PINCONF_SCHMITT
	b	LBB0_9
LBB0_5:
	mov	x0, x22
	bl	_BM1880_PINCONF_DRV
	ldr	x8, [x23]
	ldr	w22, [x8, w22, uxtw #2]
	bl	_BIT
	tst	w0, w21
	cset	w1, ne
	mov	x0, x22
	bl	_bm1880_pinconf_drv_get
	mov	x1, x0
	tbz	w0, #31, LBB0_10
	b	LBB0_11
LBB0_6:
	mov	x0, x22
	bl	_BM1880_PINCONF_PULLUP
	b	LBB0_9
LBB0_7:
	mov	x0, x22
	bl	_BM1880_PINCONF_PULLDOWN
	b	LBB0_9
LBB0_8:
	mov	x0, x22
	bl	_BM1880_PINCONF_PULLCTRL
LBB0_9:
	bl	_BIT
	tst	w0, w21
	cset	w1, ne
LBB0_10:
	mov	x0, x20
	bl	_pinconf_to_config_packed
	mov	w1, #0
	str	x0, [x19]
LBB0_11:
	mov	x0, x1
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	_BM1880_REG_MUX,8,3             ; @BM1880_REG_MUX
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.no_dead_strip	_bm1880_pinconf_cfg_get
.subsections_via_symbols
