	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm831x_gpio_set_debounce
_wm831x_gpio_set_debounce:              ## @wm831x_gpio_set_debounce
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_WM831X_GPIO1_CONTROL@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movl	%ebx, %esi
	callq	_wm831x_reg_read
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movq	_WM831X_GPN_FN_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%edx, %eax
	cmpl	$2, %eax
	jae	LBB0_2
## %bb.5:
	leal	-32(%r15), %eax
	xorl	%ecx, %ecx
	cmpl	$33, %eax
	jb	LBB0_8
## %bb.6:
	addl	$-4000, %r15d                   ## imm = 0xF060
	movl	$1, %ecx
	cmpl	$4001, %r15d                    ## imm = 0xFA1
	jae	LBB0_7
LBB0_8:
	movq	%r14, %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wm831x_set_bits                ## TAILCALL
LBB0_2:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM831X_GPIO1_CONTROL,4,2       ## @WM831X_GPIO1_CONTROL
	.comm	_WM831X_GPN_FN_MASK,4,2         ## @WM831X_GPN_FN_MASK
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_wm831x_gpio_set_debounce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm831x_gpio_set_debounce
_wm831x_gpio_set_debounce:              ; @wm831x_gpio_set_debounce
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _WM831X_GPIO1_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WM831X_GPIO1_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w20, w8, w1
	mov	x1, x20
	bl	_wm831x_reg_read
	tbnz	w0, #31, LBB0_10
; %bb.1:
Lloh3:
	adrp	x8, _WM831X_GPN_FN_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WM831X_GPN_FN_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	and	w8, w2, w0
	cmp	w8, #2
	b.hs	LBB0_4
; %bb.2:
	sub	w8, w21, #32
	cmp	w8, #33
	b.hs	LBB0_5
; %bb.3:
	mov	w3, #0
	b	LBB0_7
LBB0_4:
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
	sub	w8, w21, #4000
	cmp	w8, #4001
	b.hs	LBB0_8
; %bb.6:
	mov	w3, #1
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_wm831x_set_bits
LBB0_8:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_WM831X_GPIO1_CONTROL,4,2       ; @WM831X_GPIO1_CONTROL
	.comm	_WM831X_GPN_FN_MASK,4,2         ; @WM831X_GPN_FN_MASK
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_wm831x_gpio_set_debounce
.subsections_via_symbols
