	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p9_sbe_occ_probe
_p9_sbe_occ_probe:                      ## @p9_sbe_occ_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	(%r14), %eax
	movl	%eax, 24(%rbx)
	movq	%r14, 16(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movabsq	$137438953972, %rax             ## imm = 0x20000001F4
	movq	%rax, (%rbx)
	movq	_p9_sbe_occ_send_cmd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_occ_setup
	movl	%eax, %ecx
	movq	_ESHUTDOWN@GOTPCREL(%rip), %rdx
	movq	_ENODEV@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	subl	(%rsi), %eax
	movl	(%rdx), %edx
	addl	%ecx, %edx
	cmovnel	%ecx, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_p9_sbe_occ_send_cmd,4,2        ## @p9_sbe_occ_send_cmd
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"p9_occ"

	.comm	_ESHUTDOWN,4,2                  ## @ESHUTDOWN
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_p9_sbe_occ_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function p9_sbe_occ_probe
lCPI0_0:
	.long	500                             ; 0x1f4
	.long	32                              ; 0x20
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_p9_sbe_occ_probe:                      ; @p9_sbe_occ_probe
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w8, [x20]
	str	w8, [x0, #24]
	str	x20, [x0, #16]
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
Lloh5:
	adrp	x8, _p9_sbe_occ_send_cmd@GOTPAGE
Lloh6:
	ldr	x8, [x8, _p9_sbe_occ_send_cmd@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_occ_setup
Lloh10:
	adrp	x8, _ESHUTDOWN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ESHUTDOWN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _ENODEV@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ENODEV@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmn	w0, w8
	csneg	w0, w0, w9, ne
	b	LBB0_3
LBB0_2:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdrp	Lloh3, Lloh5
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_p9_sbe_occ_send_cmd,4,2        ; @p9_sbe_occ_send_cmd
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"p9_occ"

	.comm	_ESHUTDOWN,4,2                  ; @ESHUTDOWN
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_p9_sbe_occ_probe
.subsections_via_symbols
