	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm7038_l1_set_affinity
_bcm7038_l1_set_affinity:               ## @bcm7038_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, %r12
	movq	%rdi, %rbx
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %r14
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movq	_IRQS_PER_WORD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rbx
	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, -48(%rbp)                 ## 8-byte Spill
	callq	_BIT
	movq	%rax, %r13
	movq	_cpu_online_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_cpumask_any_and
	movl	%eax, %r15d
	addq	$8, %r14
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_raw_spin_lock_irqsave
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rax
	movq	16(%r14), %rcx
	movq	%rbx, %r12
	movq	(%rax,%rbx,8), %rsi
	movq	(%rcx,%rsi,8), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	andq	(%rax,%rcx,8), %r13
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	___bcm7038_l1_mask
	movl	%r15d, %eax
	movq	(%r14), %rcx
	movq	%rbx, %r14
	movq	%rax, (%rcx,%r12,8)
	testq	%r13, %r13
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	___bcm7038_l1_unmask
LBB0_5:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_raw_spin_unlock_irqrestore
	movl	%r15d, %edi
	callq	_cpumask_of
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_irq_data_update_effective_affinity
	xorl	%eax, %eax
	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	_cpu_online_mask,4,2            ## @cpu_online_mask
	.no_dead_strip	_bcm7038_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 bcm7038_l1_set_affinity
_bcm7038_l1_set_affinity:               ; @bcm7038_l1_set_affinity
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	bl	_irq_data_get_irq_chip_data
	mov	x22, x0
	ldr	x24, [x19]
Lloh0:
	adrp	x8, _IRQS_PER_WORD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQS_PER_WORD@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	udiv	x25, x24, x8
	msub	x0, x25, x8, x24
	bl	_BIT
	mov	x23, x0
Lloh3:
	adrp	x8, _cpu_online_mask@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cpu_online_mask@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_cpumask_any_and
	mov	x20, x0
	add	x21, x22, #8
	mov	x0, x21
	bl	_raw_spin_lock_irqsave
	ldr	x8, [x22, #16]
	ldr	x9, [x22]
	lsl	x24, x24, #3
	ldr	x1, [x9, x24]
	ldr	x8, [x8, x1, lsl #3]
	ldr	x8, [x8]
	ldr	x8, [x8, x25, lsl #3]
	and	x23, x8, x23
	mov	x0, x19
	bl	___bcm7038_l1_mask
	mov	w8, w20
	ldr	x9, [x22]
	str	x8, [x9, x24]
	cbnz	x23, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	___bcm7038_l1_unmask
LBB0_2:
	mov	x0, x21
	bl	_raw_spin_unlock_irqrestore
	mov	x0, x20
	bl	_cpumask_of
	mov	x1, x0
	mov	x0, x19
	bl	_irq_data_update_effective_affinity
	mov	w0, #0
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQS_PER_WORD,8,3              ; @IRQS_PER_WORD
	.comm	_cpu_online_mask,4,2            ; @cpu_online_mask
	.no_dead_strip	_bcm7038_l1_set_affinity
.subsections_via_symbols
