	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_phb_indications
_get_phb_indications:                   ## @get_phb_indications
	.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	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	_indications_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movl	_get_phb_indications.capi(%rip), %eax
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	%rbx, %rdi
	callq	_pnv_pci_get_phb_node
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r12
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movl	8(%rax), %edi
	callq	_be32_to_cpu
	movl	%eax, _get_phb_indications.nbw(%rip)
	movl	4(%rbx), %edi
	callq	_be32_to_cpu
	movl	%eax, _get_phb_indications.asn(%rip)
	movl	(%rbx), %edi
	callq	_be32_to_cpu
	jmp	LBB0_6
LBB0_2:
	movq	_indications_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_4:
	movl	$768, _get_phb_indications.nbw(%rip) ## imm = 0x300
	movl	$1024, _get_phb_indications.asn(%rip) ## imm = 0x400
	movl	$512, %eax                      ## imm = 0x200
LBB0_6:
	movl	%eax, _get_phb_indications.capi(%rip)
	movq	%r12, %rdi
	callq	_of_node_put
	movl	_get_phb_indications.capi(%rip), %eax
LBB0_7:
	movl	%eax, (%r13)
	movl	_get_phb_indications.asn(%rip), %eax
	movl	%eax, (%r15)
	movl	_get_phb_indications.nbw(%rip), %eax
	movl	%eax, (%r14)
	movq	_indications_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_get_phb_indications.nbw,4,2 ## @get_phb_indications.nbw
.zerofill __DATA,__bss,_get_phb_indications.asn,4,2 ## @get_phb_indications.asn
.zerofill __DATA,__bss,_get_phb_indications.capi,4,2 ## @get_phb_indications.capi
	.comm	_indications_mutex,4,2          ## @indications_mutex
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ibm,phb-indications"

	.no_dead_strip	_get_phb_indications
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_phb_indications
_get_phb_indications:                   ; @get_phb_indications
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x0, _indications_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _indications_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	adrp	x26, _get_phb_indications.capi@PAGE
	ldr	w8, [x26, _get_phb_indications.capi@PAGEOFF]
	adrp	x24, _get_phb_indications.nbw@PAGE
	adrp	x25, _get_phb_indications.asn@PAGE
	cbnz	w8, LBB0_7
; %bb.1:
	mov	x0, x22
	bl	_pnv_pci_get_phb_node
	cbz	x0, LBB0_4
; %bb.2:
	mov	x22, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	bl	_of_get_property
	cbz	x0, LBB0_5
; %bb.3:
	mov	x23, x0
	ldr	w0, [x0, #8]
	bl	_be32_to_cpu
	str	w0, [x24, _get_phb_indications.nbw@PAGEOFF]
	ldr	w0, [x23, #4]
	bl	_be32_to_cpu
	str	w0, [x25, _get_phb_indications.asn@PAGEOFF]
	ldr	w0, [x23]
	bl	_be32_to_cpu
	b	LBB0_6
LBB0_4:
Lloh4:
	adrp	x0, _indications_mutex@GOTPAGE
Lloh5:
	ldr	x0, [x0, _indications_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_5:
	mov	w8, #768
	str	w8, [x24, _get_phb_indications.nbw@PAGEOFF]
	mov	w8, #1024
	str	w8, [x25, _get_phb_indications.asn@PAGEOFF]
	mov	w0, #512
LBB0_6:
	str	w0, [x26, _get_phb_indications.capi@PAGEOFF]
	mov	x0, x22
	bl	_of_node_put
	ldr	w8, [x26, _get_phb_indications.capi@PAGEOFF]
LBB0_7:
	str	w8, [x21]
	ldr	w8, [x25, _get_phb_indications.asn@PAGEOFF]
	str	w8, [x20]
	ldr	w8, [x24, _get_phb_indications.nbw@PAGEOFF]
	str	w8, [x19]
Lloh9:
	adrp	x0, _indications_mutex@GOTPAGE
Lloh10:
	ldr	x0, [x0, _indications_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_get_phb_indications.nbw,4,2 ; @get_phb_indications.nbw
.zerofill __DATA,__bss,_get_phb_indications.asn,4,2 ; @get_phb_indications.asn
.zerofill __DATA,__bss,_get_phb_indications.capi,4,2 ; @get_phb_indications.capi
	.comm	_indications_mutex,4,2          ; @indications_mutex
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ibm,phb-indications"

	.no_dead_strip	_get_phb_indications
.subsections_via_symbols
