	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_enable_intx                ## -- Begin function qib_enable_intx
	.p2align	4, 0x90
_qib_enable_intx:                       ## @qib_enable_intx
	.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, %rbx
	movq	_PCI_COMMAND@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	leaq	-28(%rbp), %rdx
	callq	_pci_read_config_word
	movl	-28(%rbp), %eax
	movq	_PCI_COMMAND_INTX_DISABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	cmpl	%eax, %edx
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_pci_write_config_word
LBB0_2:
	movq	_PCI_CAP_ID_MSI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pci_find_capability
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movslq	%eax, %r14
	movq	_PCI_MSI_FLAGS@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	addq	%r14, %rsi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pci_read_config_word
	movl	-28(%rbp), %eax
	movq	_PCI_MSI_FLAGS_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	cmpl	%eax, %edx
	je	LBB0_5
## %bb.4:
	addq	(%r15), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_pci_write_config_word
LBB0_5:
	movq	_PCI_CAP_ID_MSIX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pci_find_capability
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movslq	%eax, %r14
	movq	_PCI_MSIX_FLAGS@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	addq	%r14, %rsi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pci_read_config_word
	movl	-28(%rbp), %eax
	movq	_PCI_MSIX_FLAGS_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	cmpl	%eax, %edx
	je	LBB0_8
## %bb.7:
	addq	(%r15), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_pci_write_config_word
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_COMMAND,8,3                ## @PCI_COMMAND
	.comm	_PCI_COMMAND_INTX_DISABLE,4,2   ## @PCI_COMMAND_INTX_DISABLE
	.comm	_PCI_CAP_ID_MSI,4,2             ## @PCI_CAP_ID_MSI
	.comm	_PCI_MSI_FLAGS,8,3              ## @PCI_MSI_FLAGS
	.comm	_PCI_MSI_FLAGS_ENABLE,4,2       ## @PCI_MSI_FLAGS_ENABLE
	.comm	_PCI_CAP_ID_MSIX,4,2            ## @PCI_CAP_ID_MSIX
	.comm	_PCI_MSIX_FLAGS,8,3             ## @PCI_MSIX_FLAGS
	.comm	_PCI_MSIX_FLAGS_ENABLE,4,2      ## @PCI_MSIX_FLAGS_ENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_enable_intx                ; -- Begin function qib_enable_intx
	.p2align	2
_qib_enable_intx:                       ; @qib_enable_intx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x20, _PCI_COMMAND@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PCI_COMMAND@GOTPAGEOFF]
	ldr	x1, [x20]
	add	x2, sp, #12
	bl	_pci_read_config_word
	ldr	w8, [sp, #12]
Lloh2:
	adrp	x9, _PCI_COMMAND_INTX_DISABLE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PCI_COMMAND_INTX_DISABLE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	bic	w2, w8, w9
	cmp	w2, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_pci_write_config_word
LBB0_2:
Lloh5:
	adrp	x8, _PCI_CAP_ID_MSI@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCI_CAP_ID_MSI@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pci_find_capability
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_5
; %bb.3:
	sxtw	x20, w0
Lloh8:
	adrp	x21, _PCI_MSI_FLAGS@GOTPAGE
Lloh9:
	ldr	x21, [x21, _PCI_MSI_FLAGS@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x1, x8, x20
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_read_config_word
	ldr	w8, [sp, #12]
Lloh10:
	adrp	x9, _PCI_MSI_FLAGS_ENABLE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PCI_MSI_FLAGS_ENABLE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	bic	w2, w8, w9
	cmp	w2, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	x8, [x21]
	add	x1, x8, x20
	mov	x0, x19
	bl	_pci_write_config_word
LBB0_5:
Lloh13:
	adrp	x8, _PCI_CAP_ID_MSIX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PCI_CAP_ID_MSIX@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pci_find_capability
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_8
; %bb.6:
	sxtw	x20, w0
Lloh16:
	adrp	x21, _PCI_MSIX_FLAGS@GOTPAGE
Lloh17:
	ldr	x21, [x21, _PCI_MSIX_FLAGS@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x1, x8, x20
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_read_config_word
	ldr	w8, [sp, #12]
Lloh18:
	adrp	x9, _PCI_MSIX_FLAGS_ENABLE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PCI_MSIX_FLAGS_ENABLE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	bic	w2, w8, w9
	cmp	w2, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	x8, [x21]
	add	x1, x8, x20
	mov	x0, x19
	bl	_pci_write_config_word
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_COMMAND,8,3                ; @PCI_COMMAND
	.comm	_PCI_COMMAND_INTX_DISABLE,4,2   ; @PCI_COMMAND_INTX_DISABLE
	.comm	_PCI_CAP_ID_MSI,4,2             ; @PCI_CAP_ID_MSI
	.comm	_PCI_MSI_FLAGS,8,3              ; @PCI_MSI_FLAGS
	.comm	_PCI_MSI_FLAGS_ENABLE,4,2       ; @PCI_MSI_FLAGS_ENABLE
	.comm	_PCI_CAP_ID_MSIX,4,2            ; @PCI_CAP_ID_MSIX
	.comm	_PCI_MSIX_FLAGS,8,3             ; @PCI_MSIX_FLAGS
	.comm	_PCI_MSIX_FLAGS_ENABLE,4,2      ; @PCI_MSIX_FLAGS_ENABLE
.subsections_via_symbols
