	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_check_and_set_intx_mask
_pci_check_and_set_intx_mask:           ## @pci_check_and_set_intx_mask
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movq	_PCI_COMMAND@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leal	3(%rdi), %eax
	testl	%edi, %edi
	cmovnsl	%edi, %eax
	andl	$-4, %eax
	subl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_BUILD_BUG_ON
	movl	(%r13), %eax
	addl	$2, %eax
	movq	_PCI_STATUS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setne	%dil
	callq	_BUILD_BUG_ON
	movq	_pci_lock@GOTPCREL(%rip), %rdi
	callq	_raw_spin_lock_irqsave
	movq	(%r12), %rax
	movl	(%r14), %esi
	movl	(%r13), %edx
	leaq	-44(%rbp), %r8
	movq	%r12, %rdi
	movl	$4, %ecx
	callq	*8(%rax)
	movl	-44(%rbp), %eax
	movl	%eax, %ecx
	sarl	$16, %ecx
	movq	_PCI_STATUS_INTERRUPT@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ecx
	xorl	%ebx, %ebx
	cmpl	%r15d, %ecx
	jne	LBB0_3
## %bb.1:
	movq	_PCI_COMMAND_INTX_DISABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	%r8d, %ecx
	notl	%ecx
	andl	%eax, %ecx
	orl	%eax, %r8d
	testl	%r15d, %r15d
	cmovel	%ecx, %r8d
	movl	$1, %ebx
	cmpl	%eax, %r8d
	je	LBB0_3
## %bb.2:
	movq	(%r12), %rax
	movl	(%r14), %esi
	movl	(%r13), %edx
	movq	%r12, %rdi
	movl	$2, %ecx
	callq	*(%rax)
LBB0_3:
	movq	_pci_lock@GOTPCREL(%rip), %rdi
	callq	_raw_spin_unlock_irqrestore
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_COMMAND,4,2                ## @PCI_COMMAND
	.comm	_PCI_STATUS,4,2                 ## @PCI_STATUS
	.comm	_pci_lock,4,2                   ## @pci_lock
	.comm	_PCI_STATUS_INTERRUPT,4,2       ## @PCI_STATUS_INTERRUPT
	.comm	_PCI_COMMAND_INTX_DISABLE,4,2   ## @PCI_COMMAND_INTX_DISABLE
	.no_dead_strip	_pci_check_and_set_intx_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_check_and_set_intx_mask
_pci_check_and_set_intx_mask:           ; @pci_check_and_set_intx_mask
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _PCI_COMMAND@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PCI_COMMAND@GOTPAGEOFF]
	ldr	x19, [x0, #8]
	ldr	w8, [x23]
	negs	w9, w8
	and	w9, w9, #0x3
	and	w8, w8, #0x3
	csneg	w0, w8, w9, mi
	bl	_BUILD_BUG_ON
	ldr	w8, [x23]
	add	w8, w8, #2
Lloh2:
	adrp	x9, _PCI_STATUS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PCI_STATUS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, ne
	bl	_BUILD_BUG_ON
Lloh5:
	adrp	x0, _pci_lock@GOTPAGE
Lloh6:
	ldr	x0, [x0, _pci_lock@GOTPAGEOFF]
	bl	_raw_spin_lock_irqsave
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	ldr	w1, [x20]
	ldr	w2, [x23]
	add	x4, sp, #12
	mov	x0, x19
	mov	w3, #4
	blr	x8
	mov	w22, #0
	ldr	w8, [sp, #12]
Lloh7:
	adrp	x9, _PCI_STATUS_INTERRUPT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PCI_STATUS_INTERRUPT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	and	w9, w9, w8, asr #16
	cmp	w9, w21
	b.ne	LBB0_4
; %bb.1:
Lloh10:
	adrp	x9, _PCI_COMMAND_INTX_DISABLE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PCI_COMMAND_INTX_DISABLE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	bic	w10, w8, w9
	orr	w9, w9, w8
	cmp	w21, #0
	csel	w4, w10, w9, eq
	cmp	w4, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w1, [x20]
	ldr	w2, [x23]
	mov	x0, x19
	mov	w3, #2
	blr	x8
LBB0_3:
	mov	w22, #1
LBB0_4:
Lloh13:
	adrp	x0, _pci_lock@GOTPAGE
Lloh14:
	ldr	x0, [x0, _pci_lock@GOTPAGEOFF]
	bl	_raw_spin_unlock_irqrestore
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_COMMAND,4,2                ; @PCI_COMMAND
	.comm	_PCI_STATUS,4,2                 ; @PCI_STATUS
	.comm	_pci_lock,4,2                   ; @pci_lock
	.comm	_PCI_STATUS_INTERRUPT,4,2       ; @PCI_STATUS_INTERRUPT
	.comm	_PCI_COMMAND_INTX_DISABLE,4,2   ; @PCI_COMMAND_INTX_DISABLE
	.no_dead_strip	_pci_check_and_set_intx_mask
.subsections_via_symbols
