	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm8xxx_read_block_irq
_pm8xxx_read_block_irq:                 ## @pm8xxx_read_block_irq
	.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	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %r14
	callq	_spin_lock
	movl	4(%r14), %edi
	movq	_SSBI_REG_ADDR_IRQ_BLK_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edx
	callq	_regmap_write
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_5
LBB0_2:
	movl	4(%r14), %edi
	movq	_SSBI_REG_ADDR_IRQ_IT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%r14, %rdi
	callq	_spin_unlock
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSBI_REG_ADDR_IRQ_BLK_SEL,4,2  ## @SSBI_REG_ADDR_IRQ_BLK_SEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed Selecting Block %d rc=%d\n"

	.comm	_SSBI_REG_ADDR_IRQ_IT_STATUS,4,2 ## @SSBI_REG_ADDR_IRQ_IT_STATUS
L_.str.1:                               ## @.str.1
	.asciz	"Failed Reading Status rc=%d\n"

	.no_dead_strip	_pm8xxx_read_block_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pm8xxx_read_block_irq
_pm8xxx_read_block_irq:                 ; @pm8xxx_read_block_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	bl	_spin_lock
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x8, _SSBI_REG_ADDR_IRQ_BLK_SEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSBI_REG_ADDR_IRQ_BLK_SEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_regmap_write
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	str	x20, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	b	LBB0_4
LBB0_2:
	ldr	w0, [x19, #4]
Lloh5:
	adrp	x8, _SSBI_REG_ADDR_IRQ_IT_STATUS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SSBI_REG_ADDR_IRQ_IT_STATUS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x2, x22
	bl	_regmap_read
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.3:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
LBB0_4:
	bl	_pr_err
LBB0_5:
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SSBI_REG_ADDR_IRQ_BLK_SEL,4,2  ; @SSBI_REG_ADDR_IRQ_BLK_SEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed Selecting Block %d rc=%d\n"

	.comm	_SSBI_REG_ADDR_IRQ_IT_STATUS,4,2 ; @SSBI_REG_ADDR_IRQ_IT_STATUS
l_.str.1:                               ; @.str.1
	.asciz	"Failed Reading Status rc=%d\n"

	.no_dead_strip	_pm8xxx_read_block_irq
.subsections_via_symbols
