	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adp5520_register_notifier      ## -- Begin function adp5520_register_notifier
	.p2align	4, 0x90
_adp5520_register_notifier:             ## @adp5520_register_notifier
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	callq	_dev_get_drvdata
	cmpq	$0, 8(%rax)
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	4(%rax), %edi
	movq	_ADP5520_INTERRUPT_ENABLE@GOTPCREL(%rip), %rax
	movq	_ADP5520_KP_IEN@GOTPCREL(%rip), %rcx
	movq	_ADP5520_KR_IEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_ADP5520_OVP_IEN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_ADP5520_CMPR_IEN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	andl	%r15d, %edx
	callq	_adp5520_set_bits
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_blocking_notifier_chain_register ## TAILCALL
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADP5520_INTERRUPT_ENABLE,4,2   ## @ADP5520_INTERRUPT_ENABLE
	.comm	_ADP5520_KP_IEN,4,2             ## @ADP5520_KP_IEN
	.comm	_ADP5520_KR_IEN,4,2             ## @ADP5520_KR_IEN
	.comm	_ADP5520_OVP_IEN,4,2            ## @ADP5520_OVP_IEN
	.comm	_ADP5520_CMPR_IEN,4,2           ## @ADP5520_CMPR_IEN
	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adp5520_register_notifier      ; -- Begin function adp5520_register_notifier
	.p2align	2
_adp5520_register_notifier:             ; @adp5520_register_notifier
	.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, x2
	mov	x19, x1
	bl	_dev_get_drvdata
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _ADP5520_INTERRUPT_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADP5520_INTERRUPT_ENABLE@GOTPAGEOFF]
	ldr	w0, [x0, #4]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ADP5520_KP_IEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADP5520_KP_IEN@GOTPAGEOFF]
Lloh5:
	adrp	x9, _ADP5520_KR_IEN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ADP5520_KR_IEN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _ADP5520_OVP_IEN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ADP5520_OVP_IEN@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _ADP5520_CMPR_IEN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ADP5520_CMPR_IEN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
	and	w2, w8, w21
	bl	_adp5520_set_bits
	mov	x0, x20
	mov	x1, 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
	b	_blocking_notifier_chain_register
LBB0_2:
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ADP5520_INTERRUPT_ENABLE,4,2   ; @ADP5520_INTERRUPT_ENABLE
	.comm	_ADP5520_KP_IEN,4,2             ; @ADP5520_KP_IEN
	.comm	_ADP5520_KR_IEN,4,2             ; @ADP5520_KR_IEN
	.comm	_ADP5520_OVP_IEN,4,2            ; @ADP5520_OVP_IEN
	.comm	_ADP5520_CMPR_IEN,4,2           ; @ADP5520_CMPR_IEN
	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
