	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcma_core_pci_irq_ctl          ## -- Begin function bcma_core_pci_irq_ctl
	.p2align	4, 0x90
_bcma_core_pci_irq_ctl:                 ## @bcma_core_pci_irq_ctl
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	8(%rsi), %rcx
	movq	(%rcx), %rcx
	movq	_BCMA_HOSTTYPE_PCI@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.2:
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	movq	_BCMA_PCI_IRQMASK@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	_pci_read_config_dword
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movl	(%rbx), %edi
	callq	_BIT
	shll	$8, %eax
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.4:
	orl	-36(%rbp), %eax
	jmp	LBB0_6
LBB0_5:
	notl	%eax
	andl	-36(%rbp), %eax
LBB0_6:
	movl	%eax, -36(%rbp)
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_pci_write_config_dword
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCMA_HOSTTYPE_PCI,8,3          ## @BCMA_HOSTTYPE_PCI
	.comm	_BCMA_PCI_IRQMASK,4,2           ## @BCMA_PCI_IRQMASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcma_core_pci_irq_ctl          ; -- Begin function bcma_core_pci_irq_ctl
	.p2align	2
_bcma_core_pci_irq_ctl:                 ; @bcma_core_pci_irq_ctl
	.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
	cbz	x0, LBB0_8
; %bb.1:
	mov	x21, x1
	ldr	x8, [x1, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _BCMA_HOSTTYPE_PCI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BCMA_HOSTTYPE_PCI@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	mov	x20, x2
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x19, [x8]
Lloh3:
	adrp	x22, _BCMA_PCI_IRQMASK@GOTPAGE
Lloh4:
	ldr	x22, [x22, _BCMA_PCI_IRQMASK@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_read_config_dword
	cbnz	w0, LBB0_8
; %bb.3:
	ldr	w0, [x21]
	bl	_BIT
	lsl	w8, w0, #8
	cbz	w20, LBB0_6
; %bb.4:
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
LBB0_7:
	str	w2, [sp, #12]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_pci_write_config_dword
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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_BCMA_HOSTTYPE_PCI,8,3          ; @BCMA_HOSTTYPE_PCI
	.comm	_BCMA_PCI_IRQMASK,4,2           ; @BCMA_PCI_IRQMASK
.subsections_via_symbols
