	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pch_gbe_request_irq
_pch_gbe_request_irq:                   ## @pch_gbe_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movl	(%rdi), %edi
	movq	_PCI_IRQ_ALL_TYPES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %esi
	movl	$1, %edx
	callq	_pci_alloc_irq_vectors
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_pci_irq_vector
	movl	%eax, 4(%r15)
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%r14), %ecx
	movq	_pch_gbe_intr@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	movq	%r14, %r8
	callq	_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_netdev_err
LBB0_4:
	movl	(%r15), %edi
	callq	_pci_dev_msi_enabled
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	movl	%ebx, %ecx
	callq	_netdev_dbg
	jmp	LBB0_5
LBB0_1:
	movl	%eax, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_IRQ_ALL_TYPES,4,2          ## @PCI_IRQ_ALL_TYPES
	.comm	_pch_gbe_intr,4,2               ## @pch_gbe_intr
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to allocate interrupt Error: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"have_msi : %d  return : 0x%04x\n"

	.no_dead_strip	_pch_gbe_request_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pch_gbe_request_irq
_pch_gbe_request_irq:                   ; @pch_gbe_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	x20, x0
	ldr	x19, [x0, #8]
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _PCI_IRQ_ALL_TYPES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_IRQ_ALL_TYPES@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	w1, #1
	mov	w2, #1
	bl	_pci_alloc_irq_vectors
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w0, [x20]
	mov	w1, #0
	bl	_pci_irq_vector
	str	w0, [x20, #4]
Lloh3:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	ldr	w3, [x19]
Lloh6:
	adrp	x1, _pch_gbe_intr@GOTPAGE
Lloh7:
	ldr	x1, [x1, _pch_gbe_intr@GOTPAGEOFF]
	mov	x4, x19
	bl	_request_irq
	mov	x21, x0
	cbz	w0, LBB0_3
; %bb.2:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_netdev_err
LBB0_3:
	ldr	w0, [x20]
	bl	_pci_dev_msi_enabled
	mov	x2, x0
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x21
	bl	_netdev_dbg
	b	LBB0_5
LBB0_4:
	mov	x21, x0
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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_IRQ_ALL_TYPES,4,2          ; @PCI_IRQ_ALL_TYPES
	.comm	_pch_gbe_intr,4,2               ; @pch_gbe_intr
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to allocate interrupt Error: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"have_msi : %d  return : 0x%04x\n"

	.no_dead_strip	_pch_gbe_request_irq
.subsections_via_symbols
