	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function del_mapping_key
_del_mapping_key:                       ## @del_mapping_key
	.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
	movq	%rsi, %r15
	movq	%rdi, %r13
	leaq	_del_mapping_key.subkey(%rip), %r12
	movq	%r12, %rdi
	callq	_lstrlenW
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_strlenW
	addl	%eax, %ebx
	movq	%r13, %rdi
	callq	_strlenW
	addl	%eax, %ebx
	movq	%r14, %rdi
	callq	_strlenW
	addl	%eax, %ebx
	movl	%ebx, %edi
	callq	_heap_alloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%r13, %rcx
	movq	%r14, %r8
	callq	_sprintfW
	movq	_HKEY_CURRENT_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_RegDeleteKeyW
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_heap_free                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @del_mapping_key.subkey
_del_mapping_key.subkey:
	.asciz	"Software\\Wine\\DirectInput\\Mappings\\%s\\%s\\%s"

	.comm	_HKEY_CURRENT_USER,4,2          ## @HKEY_CURRENT_USER
	.no_dead_strip	_del_mapping_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function del_mapping_key
_del_mapping_key:                       ; @del_mapping_key
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _del_mapping_key.subkey@PAGE
Lloh1:
	add	x22, x22, _del_mapping_key.subkey@PAGEOFF
	mov	x0, x22
	bl	_lstrlenW
	mov	x23, x0
	mov	x0, x20
	bl	_strlenW
	add	w23, w0, w23
	mov	x0, x21
	bl	_strlenW
	add	w23, w23, w0
	mov	x0, x19
	bl	_strlenW
	add	w0, w23, w0
	bl	_heap_alloc
	mov	x23, x0
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	mov	x4, x19
	bl	_sprintfW
Lloh2:
	adrp	x8, _HKEY_CURRENT_USER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HKEY_CURRENT_USER@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_RegDeleteKeyW
	mov	x0, x23
	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
	b	_heap_free
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_del_mapping_key.subkey:                ; @del_mapping_key.subkey
	.asciz	"Software\\Wine\\DirectInput\\Mappings\\%s\\%s\\%s"

	.comm	_HKEY_CURRENT_USER,4,2          ; @HKEY_CURRENT_USER
	.no_dead_strip	_del_mapping_key
.subsections_via_symbols
