	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grover_beep_probe
_grover_beep_probe:                     ## @grover_beep_probe
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rbx)
	movq	_grover_spkr_event@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	%rbx, %rdi
	addq	$24, %rdi
	callq	_spin_lock_init
	movq	(%r15), %rdi
	addq	$8, %rdi
	leaq	L_.str.1(%rip), %rcx
	xorl	%esi, %esi
	movl	$2, %edx
	callq	_of_ioremap
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	(%r15), %rdi
	addq	$12, %rdi
	leaq	L_.str.2(%rip), %rcx
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_of_ioremap
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	leaq	8(%r15), %rdi
	callq	_sparcspkr_probe
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movl	%eax, %r14d
	movq	(%r15), %rdi
	addq	$12, %rdi
	movq	16(%rbx), %rsi
	movl	$1, %edx
	callq	_of_iounmap
LBB0_5:
	movq	(%r15), %rdi
	addq	$8, %rdi
	movq	8(%rbx), %rsi
	movl	$2, %edx
	callq	_of_iounmap
LBB0_6:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_7:
	movl	%r14d, %r12d
LBB0_8:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sparc Grover Speaker"

	.comm	_grover_spkr_event,4,2          ## @grover_spkr_event
L_.str.1:                               ## @.str.1
	.asciz	"grover beep freq"

L_.str.2:                               ## @.str.2
	.asciz	"grover beep enable"

	.no_dead_strip	_grover_beep_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grover_beep_probe
_grover_beep_probe:                     ; @grover_beep_probe
	.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, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
Lloh6:
	adrp	x8, l_.str@PAGE
Lloh7:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x0]
Lloh8:
	adrp	x8, _grover_spkr_event@GOTPAGE
Lloh9:
	ldr	x8, [x8, _grover_spkr_event@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x0, #28]
	add	x0, x0, #24
	bl	_spin_lock_init
	ldr	x8, [x21]
	add	x0, x8, #8
Lloh11:
	adrp	x3, l_.str.1@PAGE
Lloh12:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w1, #0
	mov	w2, #2
	bl	_of_ioremap
	str	x0, [x20, #8]
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x8, [x21]
	add	x0, x8, #12
Lloh13:
	adrp	x3, l_.str.2@PAGE
Lloh14:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	w1, #0
	mov	w2, #1
	bl	_of_ioremap
	str	x0, [x20, #16]
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	bl	_platform_set_drvdata
	add	x0, x21, #8
	bl	_sparcspkr_probe
	mov	x19, x0
	cbz	w0, LBB0_7
; %bb.4:
	ldr	x8, [x21]
	add	x0, x8, #12
	ldr	x1, [x20, #16]
	mov	w2, #1
	bl	_of_iounmap
LBB0_5:
	ldr	x8, [x21]
	add	x0, x8, #8
	ldr	x1, [x20, #8]
	mov	w2, #2
	bl	_of_iounmap
LBB0_6:
	mov	x0, x20
	bl	_kfree
LBB0_7:
	mov	x0, x19
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sparc Grover Speaker"

	.comm	_grover_spkr_event,4,2          ; @grover_spkr_event
l_.str.1:                               ; @.str.1
	.asciz	"grover beep freq"

l_.str.2:                               ; @.str.2
	.asciz	"grover beep enable"

	.no_dead_strip	_grover_beep_probe
.subsections_via_symbols
