	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function safexcel_request_ring_irq
_safexcel_request_ring_irq:             ## @safexcel_request_ring_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movl	%r8d, %r12d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	_CONFIG_PCI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testl	%ebx, %ebx
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.1:
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_pci_irq_vector
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_6
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
LBB0_4:
	movq	_CONFIG_OF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:
	movw	$0, -48(%rbp)
	movl	$0, -52(%rbp)
	leaq	L_.str.1(%rip), %rdx
	leaq	-52(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$6, %esi
	movl	%r14d, %ecx
	callq	_snprintf
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_platform_get_irq_byname
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_6
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	leaq	-52(%rbp), %rdx
	movq	%r13, %rdi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
LBB0_5:
                                        ## implicit-def: $r13
                                        ## implicit-def: $r15d
LBB0_6:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_dev_name
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rsp)
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	movl	%ebx, %r8d
	movl	%eax, %r9d
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%ebx, %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_PCI,4,2                 ## @CONFIG_PCI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to get device MSI IRQ %d (err %d)\n"

	.comm	_CONFIG_OF,4,2                  ## @CONFIG_OF
L_.str.1:                               ## @.str.1
	.asciz	"ring%d"

L_.str.2:                               ## @.str.2
	.asciz	"unable to get IRQ '%s' (err %d)\n"

	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.3:                               ## @.str.3
	.asciz	"unable to request IRQ %d\n"

	.no_dead_strip	_safexcel_request_ring_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function safexcel_request_ring_irq
_safexcel_request_ring_irq:             ; @safexcel_request_ring_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _CONFIG_PCI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONFIG_PCI@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	w23, LBB0_4
; %bb.1:
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	mov	x1, x24
	bl	_pci_irq_vector
	mov	x23, x0
	tbz	w0, #31, LBB0_9
; %bb.3:
	stp	x24, x23, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_4:
Lloh5:
	adrp	x8, _CONFIG_OF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CONFIG_OF@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	x0, LBB0_8
; %bb.5:
	strh	wzr, [sp, #28]
	str	wzr, [sp, #24]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x25, sp, #24
	add	x0, sp, #24
	mov	w1, #6
	mov	x3, x24
	bl	_snprintf
	add	x1, sp, #24
	mov	x0, x19
	bl	_platform_get_irq_byname
	mov	x23, x0
	tbz	w0, #31, LBB0_9
; %bb.6:
	mov	x8, x23
	stp	x25, x8, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_11
LBB0_8:
                                        ; implicit-def: $x19
                                        ; implicit-def: $w23
LBB0_9:
Lloh12:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh14:
	ldr	w24, [x8]
	mov	x0, x19
	bl	_dev_name
	mov	x5, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x24
	mov	x6, x20
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_11
; %bb.10:
	mov	x20, x0
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	str	x23, [sp]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x23, x20
LBB0_11:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_PCI,4,2                 ; @CONFIG_PCI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to get device MSI IRQ %d (err %d)\n"

	.comm	_CONFIG_OF,4,2                  ; @CONFIG_OF
l_.str.1:                               ; @.str.1
	.asciz	"ring%d"

l_.str.2:                               ; @.str.2
	.asciz	"unable to get IRQ '%s' (err %d)\n"

	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.3:                               ; @.str.3
	.asciz	"unable to request IRQ %d\n"

	.no_dead_strip	_safexcel_request_ring_irq
.subsections_via_symbols
