	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm6345_l1_set_affinity
_bcm6345_l1_set_affinity:               ## @bcm6345_l1_set_affinity
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	_IRQS_PER_WORD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rdi
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %edi
                                        ## kill: def $eax killed $eax def $rax
LBB0_3:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	callq	_BIT
	movq	%rax, %r13
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_cpu_for_irq
	movl	%eax, %r12d
	movq	%r14, %rsi
	addq	$16, %rsi
	leaq	-48(%rbp), %rdi
	movq	%r15, %rdx
	callq	_cpumask_and
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	_cpu_online_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdi
	callq	_cpumask_any_and
	movl	%eax, %r15d
	movq	_nr_cpu_ids@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jae	LBB0_4
## %bb.6:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movl	%r15d, %edi
	callq	_cpumask_of
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_raw_spin_lock_irqsave
	cmpl	%r15d, %r12d
	jne	LBB0_7
## %bb.9:
	movq	%rbx, %rdi
	callq	_irq_data_get_affinity_mask
	movl	%eax, %edi
	movq	%r13, %rsi
	jmp	LBB0_11
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_7:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	movl	%r12d, %ecx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	testl	%edx, (%rax,%rcx,8)
	je	LBB0_10
## %bb.8:
	movq	%rbx, %rdi
	callq	___bcm6345_l1_mask
	movq	%rbx, %rdi
	callq	_irq_data_get_affinity_mask
	movl	%eax, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_cpumask_copy
	movq	%rbx, %rdi
	callq	___bcm6345_l1_unmask
	jmp	LBB0_12
LBB0_10:
	movq	%rbx, %rdi
	callq	_irq_data_get_affinity_mask
	movl	%eax, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
LBB0_11:
	callq	_cpumask_copy
LBB0_12:
	movq	%r14, %rdi
	callq	_raw_spin_unlock_irqrestore
	movl	%r15d, %edi
	callq	_cpumask_of
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_irq_data_update_effective_affinity
	movq	_IRQ_SET_MASK_OK_NOCOPY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQS_PER_WORD,8,3              ## @IRQS_PER_WORD
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_cpu_online_mask,4,2            ## @cpu_online_mask
	.comm	_nr_cpu_ids,4,2                 ## @nr_cpu_ids
	.comm	_IRQ_SET_MASK_OK_NOCOPY,4,2     ## @IRQ_SET_MASK_OK_NOCOPY
	.no_dead_strip	_bcm6345_l1_set_affinity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm6345_l1_set_affinity
_bcm6345_l1_set_affinity:               ; @bcm6345_l1_set_affinity
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x19, x0
	bl	_irq_data_get_irq_chip_data
	mov	x20, x0
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _IRQS_PER_WORD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IRQS_PER_WORD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	udiv	x25, x8, x9
	msub	x0, x25, x9, x8
	bl	_BIT
	mov	x22, x0
	mov	x0, x20
	mov	x1, x19
	bl	_cpu_for_irq
	mov	x24, x0
	add	x1, x20, #16
	add	x0, sp, #8
	mov	x2, x21
	bl	_cpumask_and
	cbz	w0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _cpu_online_mask@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cpu_online_mask@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_cpumask_any_and
Lloh6:
	adrp	x8, _nr_cpu_ids@GOTPAGE
Lloh7:
	ldr	x8, [x8, _nr_cpu_ids@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.hs	LBB0_5
; %bb.2:
	mov	x21, x0
	bl	_cpumask_of
	mov	x23, x0
	mov	x0, x20
	bl	_raw_spin_lock_irqsave
	cmp	w24, w21
	b.eq	LBB0_6
; %bb.3:
	ldr	x8, [x20, #8]
	ldr	x8, [x8, w24, uxtw #3]
	ldr	x8, [x8]
	ldr	x8, [x8, x25, lsl #3]
	tst	w8, w22
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x19
	bl	___bcm6345_l1_mask
	mov	x0, x19
	bl	_irq_data_get_affinity_mask
	mov	x1, x23
	bl	_cpumask_copy
	mov	x0, x19
	bl	___bcm6345_l1_unmask
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_irq_data_get_affinity_mask
	mov	x1, x23
	bl	_cpumask_copy
LBB0_7:
	mov	x0, x20
	bl	_raw_spin_unlock_irqrestore
	mov	x0, x21
	bl	_cpumask_of
	mov	x1, x0
	mov	x0, x19
	bl	_irq_data_update_effective_affinity
Lloh12:
	adrp	x8, _IRQ_SET_MASK_OK_NOCOPY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQ_SET_MASK_OK_NOCOPY@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQS_PER_WORD,8,3              ; @IRQS_PER_WORD
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_cpu_online_mask,4,2            ; @cpu_online_mask
	.comm	_nr_cpu_ids,4,2                 ; @nr_cpu_ids
	.comm	_IRQ_SET_MASK_OK_NOCOPY,4,2     ; @IRQ_SET_MASK_OK_NOCOPY
	.no_dead_strip	_bcm6345_l1_set_affinity
.subsections_via_symbols
