	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcf50633_irq_init              ## -- Begin function pcf50633_irq_init
	.p2align	4, 0x90
_pcf50633_irq_init:                     ## @pcf50633_irq_init
	.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	%esi, %r14d
	movq	%rdi, %rbx
	movl	%esi, (%rdi)
	movq	8(%rdi), %rax
	movl	$128, (%rax)
	movq	_PCF50633_REG_INT1M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$128, %edx
	callq	_pcf50633_reg_write
	movq	_PCF50633_REG_INT2M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_pcf50633_reg_write
	movq	_PCF50633_REG_INT3M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_pcf50633_reg_write
	movq	_PCF50633_REG_INT4M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_pcf50633_reg_write
	movq	_PCF50633_REG_INT5M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_pcf50633_reg_write
	movq	_pcf50633_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_TRIGGER_LOW@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	L_.str(%rip), %r8
	movl	%r14d, %edi
	xorl	%esi, %esi
	movq	%rbx, %r9
	callq	_request_threaded_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	16(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_err
LBB0_2:
	movl	%r14d, %edi
	callq	_enable_irq_wake
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	movl	16(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_err
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCF50633_REG_INT1M,4,2         ## @PCF50633_REG_INT1M
	.comm	_PCF50633_REG_INT2M,4,2         ## @PCF50633_REG_INT2M
	.comm	_PCF50633_REG_INT3M,4,2         ## @PCF50633_REG_INT3M
	.comm	_PCF50633_REG_INT4M,4,2         ## @PCF50633_REG_INT4M
	.comm	_PCF50633_REG_INT5M,4,2         ## @PCF50633_REG_INT5M
	.comm	_pcf50633_irq,4,2               ## @pcf50633_irq
	.comm	_IRQF_TRIGGER_LOW,4,2           ## @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pcf50633"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to request IRQ %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"IRQ %u cannot be enabled as wake-up sourcein this hardware revision"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcf50633_irq_init              ; -- Begin function pcf50633_irq_init
	.p2align	2
_pcf50633_irq_init:                     ; @pcf50633_irq_init
	.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, x1
	mov	x20, x0
	str	w1, [x0]
	ldr	x8, [x0, #8]
	mov	w9, #128
	str	w9, [x8]
Lloh0:
	adrp	x8, _PCF50633_REG_INT1M@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCF50633_REG_INT1M@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #128
	bl	_pcf50633_reg_write
Lloh3:
	adrp	x8, _PCF50633_REG_INT2M@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCF50633_REG_INT2M@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_pcf50633_reg_write
Lloh6:
	adrp	x8, _PCF50633_REG_INT3M@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCF50633_REG_INT3M@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_pcf50633_reg_write
Lloh9:
	adrp	x8, _PCF50633_REG_INT4M@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCF50633_REG_INT4M@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_pcf50633_reg_write
Lloh12:
	adrp	x8, _PCF50633_REG_INT5M@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCF50633_REG_INT5M@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_pcf50633_reg_write
Lloh15:
	adrp	x8, _pcf50633_irq@GOTPAGE
Lloh16:
	ldr	x8, [x8, _pcf50633_irq@GOTPAGEOFF]
Lloh17:
	adrp	x9, _IRQF_TRIGGER_LOW@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IRQF_TRIGGER_LOW@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	ldr	w8, [x9]
Lloh21:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh24:
	adrp	x4, l_.str@PAGE
Lloh25:
	add	x4, x4, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, #0
	mov	x5, x20
	bl	_request_threaded_irq
	mov	x21, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x20, #16]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_dev_err
LBB0_2:
	mov	x0, x19
	bl	_enable_irq_wake
	tbz	x0, #63, LBB0_4
; %bb.3:
	ldr	w0, [x20, #16]
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_dev_err
LBB0_4:
	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	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.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 AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_PCF50633_REG_INT1M,4,2         ; @PCF50633_REG_INT1M
	.comm	_PCF50633_REG_INT2M,4,2         ; @PCF50633_REG_INT2M
	.comm	_PCF50633_REG_INT3M,4,2         ; @PCF50633_REG_INT3M
	.comm	_PCF50633_REG_INT4M,4,2         ; @PCF50633_REG_INT4M
	.comm	_PCF50633_REG_INT5M,4,2         ; @PCF50633_REG_INT5M
	.comm	_pcf50633_irq,4,2               ; @pcf50633_irq
	.comm	_IRQF_TRIGGER_LOW,4,2           ; @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pcf50633"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to request IRQ %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"IRQ %u cannot be enabled as wake-up sourcein this hardware revision"

.subsections_via_symbols
