	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rockchip_set_schmitt
_rockchip_set_schmitt:                  ## @rockchip_set_schmitt
	.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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	8(%rax), %r12
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	callq	_dev_dbg
	leaq	-48(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	leaq	-36(%rbp), %r8
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	*(%r12)
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	-36(%rbp), %edi
	addl	$16, %edi
	callq	_BIT
	movl	-36(%rbp), %ecx
	shll	%cl, %r14d
	orl	%eax, %r14d
	addl	$16, %ecx
	movl	%ecx, %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	-36(%rbp), %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	-48(%rbp), %rdi
	movl	-40(%rbp), %esi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_regmap_update_bits
LBB0_2:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting input schmitt of GPIO%d-%d to %d\n"

	.no_dead_strip	_rockchip_set_schmitt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rockchip_set_schmitt
_rockchip_set_schmitt:                  ; @rockchip_set_schmitt
	.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	x20, x1
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	x22, [x8, #8]
	ldr	w0, [x8]
	ldr	w2, [x21]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	mov	x4, x19
	bl	_dev_dbg
	ldr	x8, [x22]
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x4, sp
	mov	x0, x21
	mov	x1, x20
	blr	x8
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w8, [sp]
	add	w0, w8, #16
	bl	_BIT
	ldr	w8, [sp]
	lsl	w9, w19, w8
	orr	w19, w9, w0
	add	w0, w8, #16
	bl	_BIT
	mov	x20, x0
	ldr	w0, [sp]
	bl	_BIT
	orr	w2, w0, w20
	ldr	x0, [sp, #8]
	ldr	w1, [sp, #4]
	mov	x3, x19
	bl	_regmap_update_bits
LBB0_2:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting input schmitt of GPIO%d-%d to %d\n"

	.no_dead_strip	_rockchip_set_schmitt
.subsections_via_symbols
