	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bbc_beep_probe
_bbc_beep_probe:                        ## @bbc_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
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r12
	leaq	L_.str(%rip), %rax
	movq	%rax, (%r12)
	movq	_bbc_spkr_event@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movq	%r12, %rdi
	addq	$16, %rdi
	callq	_spin_lock_init
	leaq	L_.str.1(%rip), %rdi
	callq	_of_find_node_by_path
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	subl	(%rcx), %r14d
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	_of_getintprop_default
	movl	%eax, 12(%r12)
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movq	(%r15), %rdi
	leaq	L_.str.3(%rip), %rcx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$6, %edx
	callq	_of_ioremap
	movl	%eax, 8(%r12)
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	leaq	8(%r15), %rdi
	callq	_sparcspkr_probe
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %r14d
	movq	(%r15), %rdi
	movl	8(%r12), %esi
	movl	$6, %edx
	callq	_of_iounmap
LBB0_6:
	movq	%r12, %rdi
	callq	_kfree
	movl	%r14d, %ebx
LBB0_7:
	movl	%ebx, %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 BBC Speaker"

	.comm	_bbc_spkr_event,4,2             ## @bbc_spkr_event
L_.str.1:                               ## @.str.1
	.asciz	"/"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"clock-frequency"

L_.str.3:                               ## @.str.3
	.asciz	"bbc beep"

	.no_dead_strip	_bbc_beep_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bbc_beep_probe
_bbc_beep_probe:                        ; @bbc_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	x20, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
Lloh6:
	adrp	x8, l_.str@PAGE
Lloh7:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x0]
Lloh8:
	adrp	x8, _bbc_spkr_event@GOTPAGE
Lloh9:
	ldr	x8, [x8, _bbc_spkr_event@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x0, #20]
	add	x0, x0, #16
	bl	_spin_lock_init
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_of_find_node_by_path
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w21, w8
	cbz	x0, LBB0_6
; %bb.2:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #0
	bl	_of_getintprop_default
	str	w0, [x19, #12]
	cbz	w0, LBB0_6
; %bb.3:
	ldr	x0, [x20]
Lloh18:
	adrp	x3, l_.str.3@PAGE
Lloh19:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	w1, #0
	mov	w2, #6
	bl	_of_ioremap
	str	w0, [x19, #8]
	cbz	w0, LBB0_6
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	add	x0, x20, #8
	bl	_sparcspkr_probe
	mov	x21, x0
	cbz	w0, LBB0_8
; %bb.5:
	ldr	x0, [x20]
	ldr	w1, [x19, #8]
	mov	w2, #6
	bl	_of_iounmap
LBB0_6:
	mov	x0, x19
	bl	_kfree
	b	LBB0_8
LBB0_7:
	neg	w21, w21
LBB0_8:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.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 BBC Speaker"

	.comm	_bbc_spkr_event,4,2             ; @bbc_spkr_event
l_.str.1:                               ; @.str.1
	.asciz	"/"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"clock-frequency"

l_.str.3:                               ; @.str.3
	.asciz	"bbc beep"

	.no_dead_strip	_bbc_beep_probe
.subsections_via_symbols
