	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function config_irq
_config_irq:                            ## @config_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	%rsi, %r14
	movq	%rdi, %r12
	xorl	%ebx, %ebx
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_dbg
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.2:
	movq	_mcr_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_TRIGGER_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r12, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_dev_err
	jmp	LBB0_5
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_4:
	movq	_aspeed_regmap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ASPEED_MCR_INTR_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ASPEED_MCR_INTR_CTRL_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"got irq %d\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_mcr_isr,4,2                    ## @mcr_isr
	.comm	_IRQF_TRIGGER_HIGH,4,2          ## @IRQF_TRIGGER_HIGH
	.comm	_DRV_NAME,4,2                   ## @DRV_NAME
L_.str.1:                               ## @.str.1
	.asciz	"unable to request irq %d\n"

	.comm	_aspeed_regmap,4,2              ## @aspeed_regmap
	.comm	_ASPEED_MCR_INTR_CTRL,4,2       ## @ASPEED_MCR_INTR_CTRL
	.comm	_ASPEED_MCR_INTR_CTRL_ENABLE,4,2 ## @ASPEED_MCR_INTR_CTRL_ENABLE
	.no_dead_strip	_config_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function config_irq
_config_irq:                            ; @config_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, x1
	mov	x21, x0
	mov	x0, x1
	mov	w1, #0
	bl	_platform_get_irq
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_dbg
	cbz	w20, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _mcr_isr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mcr_isr@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _IRQF_TRIGGER_HIGH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQF_TRIGGER_HIGH@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x8, _DRV_NAME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DRV_NAME@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x5, x21
	bl	_devm_request_irq
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.2:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
	b	LBB0_5
LBB0_3:
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_5
LBB0_4:
Lloh16:
	adrp	x8, _aspeed_regmap@GOTPAGE
Lloh17:
	ldr	x8, [x8, _aspeed_regmap@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _ASPEED_MCR_INTR_CTRL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ASPEED_MCR_INTR_CTRL@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _ASPEED_MCR_INTR_CTRL_ENABLE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ASPEED_MCR_INTR_CTRL_ENABLE@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x3, x2
	bl	_regmap_update_bits
LBB0_5:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"got irq %d\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_mcr_isr,4,2                    ; @mcr_isr
	.comm	_IRQF_TRIGGER_HIGH,4,2          ; @IRQF_TRIGGER_HIGH
	.comm	_DRV_NAME,4,2                   ; @DRV_NAME
l_.str.1:                               ; @.str.1
	.asciz	"unable to request irq %d\n"

	.comm	_aspeed_regmap,4,2              ; @aspeed_regmap
	.comm	_ASPEED_MCR_INTR_CTRL,4,2       ; @ASPEED_MCR_INTR_CTRL
	.comm	_ASPEED_MCR_INTR_CTRL_ENABLE,4,2 ; @ASPEED_MCR_INTR_CTRL_ENABLE
	.no_dead_strip	_config_irq
.subsections_via_symbols
