	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function device_irq_init_800
_device_irq_init_800:                   ## @device_irq_init_800
	.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, %rbx
	movq	16(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	cmpl	$0, 8(%rbx)
	je	LBB0_2
## %bb.3:
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_PM800_WAKEUP2_INV_INT@GOTPCREL(%rip), %rax
	movq	_PM800_WAKEUP2_INT_CLEAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%rax), %edx
	orl	%ecx, %edx
	movq	_PM800_WAKEUP2_INT_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_PM800_WAKEUP2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regmap_update_bits
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	16(%rbx), %rdi
	movl	4(%rbx), %r8d
	movl	8(%rbx), %esi
	movq	%r14, %rdx
	movl	$-1, %ecx
	movq	%rbx, %r9
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_regmap_add_irq_chip            ## TAILCALL
LBB0_2:
	movl	24(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQF_ONESHOT,8,3               ## @IRQF_ONESHOT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"incorrect parameters\n"

	.comm	_PM800_WAKEUP2_INV_INT,4,2      ## @PM800_WAKEUP2_INV_INT
	.comm	_PM800_WAKEUP2_INT_CLEAR,4,2    ## @PM800_WAKEUP2_INT_CLEAR
	.comm	_PM800_WAKEUP2_INT_MASK,4,2     ## @PM800_WAKEUP2_INT_MASK
	.comm	_PM800_WAKEUP2,4,2              ## @PM800_WAKEUP2
	.no_dead_strip	_device_irq_init_800
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function device_irq_init_800
_device_irq_init_800:                   ; @device_irq_init_800
	.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	x19, x0
	ldr	x0, [x0, #16]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
Lloh3:
	adrp	x8, _PM800_WAKEUP2_INV_INT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PM800_WAKEUP2_INV_INT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _PM800_WAKEUP2_INT_CLEAR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PM800_WAKEUP2_INT_CLEAR@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x9]
Lloh9:
	adrp	x9, _PM800_WAKEUP2_INT_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PM800_WAKEUP2_INT_MASK@GOTPAGEOFF]
	orr	w8, w3, w8
Lloh11:
	ldr	w9, [x9]
	orr	w2, w8, w9
Lloh12:
	adrp	x8, _PM800_WAKEUP2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PM800_WAKEUP2@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_regmap_update_bits
	tbnz	w0, #31, LBB0_5
; %bb.3:
	ldr	x0, [x19, #16]
	ldp	w4, w1, [x19, #4]
	mov	x2, x20
	mov	w3, #-1
	mov	x5, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_regmap_add_irq_chip
LBB0_4:
	ldr	w0, [x19, #24]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQF_ONESHOT,8,3               ; @IRQF_ONESHOT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"incorrect parameters\n"

	.comm	_PM800_WAKEUP2_INV_INT,4,2      ; @PM800_WAKEUP2_INV_INT
	.comm	_PM800_WAKEUP2_INT_CLEAR,4,2    ; @PM800_WAKEUP2_INT_CLEAR
	.comm	_PM800_WAKEUP2_INT_MASK,4,2     ; @PM800_WAKEUP2_INT_MASK
	.comm	_PM800_WAKEUP2,4,2              ; @PM800_WAKEUP2
	.no_dead_strip	_device_irq_init_800
.subsections_via_symbols
