	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl1c_request_irq
_atl1c_request_irq:                     ## @atl1c_request_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	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	16(%rdi), %r15
	movl	$1, (%rdi)
	movq	%r14, %rdi
	callq	_pci_enable_msi
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_netif_msg_ifup
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_dev_err
LBB0_3:
	movl	$0, (%rbx)
LBB0_5:
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_6
LBB0_4:
	xorl	%edx, %edx
	cmpl	$0, (%rbx)
	je	LBB0_5
LBB0_6:
	movq	8(%rbx), %rax
	movl	4(%rax), %edi
	movq	_atl1c_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %ecx
	movq	%r15, %r8
	callq	_request_irq
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_netif_msg_ifup
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.7:
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_dev_err
LBB0_9:
	cmpl	$0, (%rbx)
	je	LBB0_13
## %bb.10:
	movq	8(%rbx), %rdi
	callq	_pci_disable_msi
	jmp	LBB0_13
LBB0_11:
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
LBB0_13:
	movl	%r15d, %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	"Unable to allocate MSI interrupt Error: %d\n"

	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_atl1c_intr,4,2                 ## @atl1c_intr
L_.str.1:                               ## @.str.1
	.asciz	"Unable to allocate interrupt Error: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"atl1c_request_irq OK\n"

	.no_dead_strip	_atl1c_request_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atl1c_request_irq
_atl1c_request_irq:                     ; @atl1c_request_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
	ldp	x20, x21, [x0, #8]
	mov	w8, #1
	str	w8, [x0]
	mov	x0, x20
	bl	_pci_enable_msi
	cbz	w0, LBB0_5
; %bb.1:
	mov	x22, x0
	mov	x0, x19
	bl	_netif_msg_ifup
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_dev_err
LBB0_3:
	str	wzr, [x19]
LBB0_4:
Lloh2:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	b	LBB0_7
LBB0_5:
	ldr	w8, [x19]
	cbz	w8, LBB0_4
; %bb.6:
	mov	w2, #0
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #4]
Lloh5:
	adrp	x8, _atl1c_intr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _atl1c_intr@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w3, [x21]
	mov	x4, x21
	bl	_request_irq
	mov	x21, x0
	mov	x0, x19
	bl	_netif_msg_ifup
	cbz	w21, LBB0_12
; %bb.8:
	cbz	x0, LBB0_10
; %bb.9:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_err
LBB0_10:
	ldr	w8, [x19]
	cbz	w8, LBB0_14
; %bb.11:
	ldr	x0, [x19, #8]
	bl	_pci_disable_msi
	b	LBB0_14
LBB0_12:
	cbz	x0, LBB0_14
; %bb.13:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
LBB0_14:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to allocate MSI interrupt Error: %d\n"

	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_atl1c_intr,4,2                 ; @atl1c_intr
l_.str.1:                               ; @.str.1
	.asciz	"Unable to allocate interrupt Error: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"atl1c_request_irq OK\n"

	.no_dead_strip	_atl1c_request_irq
.subsections_via_symbols
