	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssi_wake_irq
_ssi_wake_irq:                          ## @ssi_wake_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_hsi_port_drvdata
	movq	%rax, %rbx
	movl	4(%rax), %edi
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	callq	_gpiod_to_irq
	movl	%eax, %r14d
	movl	%eax, (%rbx)
	movq	_ssi_wake_thread@GOTPCREL(%rip), %rax
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rcx
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rcx), %r8d
	movl	(%rax), %ecx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movq	%r15, (%rsp)
	leaq	L_.str(%rip), %r9
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_dev_err
LBB0_4:
	movl	%r14d, %edi
	callq	_enable_irq_wake
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	callq	_dev_err
	jmp	LBB0_6
LBB0_1:
	movl	$-1, (%rbx)
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ssi_wake_thread,4,2            ## @ssi_wake_thread
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SSI cawake"

L_.str.1:                               ## @.str.1
	.asciz	"Request Wake in IRQ %d failed %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Enable wake on the wakeline in irq %d failed %d\n"

	.no_dead_strip	_ssi_wake_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssi_wake_irq
_ssi_wake_irq:                          ; @ssi_wake_irq
	.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	x19, x0
	bl	_hsi_port_drvdata
	mov	x22, x0
	ldr	w0, [x0, #4]
	cbz	w0, LBB0_5
; %bb.1:
	bl	_gpiod_to_irq
	mov	x20, x0
	str	w0, [x22]
Lloh0:
	adrp	x8, _ssi_wake_thread@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ssi_wake_thread@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x8, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w4, w8, w9
Lloh12:
	adrp	x5, l_.str@PAGE
Lloh13:
	add	x5, x5, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	mov	x6, x19
	bl	_devm_request_threaded_irq
	tbz	w0, #31, LBB0_3
; %bb.2:
	mov	x3, x0
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
LBB0_3:
	mov	x0, x20
	bl	_enable_irq_wake
	mov	x21, x0
	tbz	w0, #31, LBB0_6
; %bb.4:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	_dev_err
	b	LBB0_6
LBB0_5:
	mov	w21, #0
	mov	w8, #-1
	str	w8, [x22]
LBB0_6:
	mov	x0, x21
	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 AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ssi_wake_thread,4,2            ; @ssi_wake_thread
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SSI cawake"

l_.str.1:                               ; @.str.1
	.asciz	"Request Wake in IRQ %d failed %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Enable wake on the wakeline in irq %d failed %d\n"

	.no_dead_strip	_ssi_wake_irq
.subsections_via_symbols
