	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uv_set_irq_affinity
_uv_set_irq_affinity:                   ## @uv_set_irq_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r13d
	callq	_irq_to_desc
	movq	(%rax), %r14
	leaq	-48(%rbp), %rdx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_set_desc_affinity
	movl	$-1, %r15d
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movl	-48(%rbp), %r12d
	leaq	-56(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movl	%r13d, %edi
	callq	_uv_irq_2_mmr_info
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movl	-44(%rbp), %edi
	movq	-56(%rbp), %rsi
	movq	%r12, %rdx
	callq	_uv_write_global_mmr64
	xorl	%r15d, %r15d
	cmpq	$0, (%r14)
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_send_cleanup_vector
LBB0_4:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_apic,8,3                       ## @apic
	.no_dead_strip	_uv_set_irq_affinity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uv_set_irq_affinity
_uv_set_irq_affinity:                   ; @uv_set_irq_affinity
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x1
	mov	x20, x0
	bl	_irq_to_desc
	ldr	x19, [x0]
	add	x2, sp, #28
	mov	x1, x21
	bl	_set_desc_affinity
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w21, [sp, #28]
	add	x1, sp, #16
	add	x2, sp, #12
	mov	x0, x20
	bl	_uv_irq_2_mmr_info
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #-1
LBB0_3:
	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
	add	sp, sp, #80
	ret
LBB0_4:
	ldr	w0, [sp, #12]
	ldr	x1, [sp, #16]
	mov	x2, x21
	bl	_uv_write_global_mmr64
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_send_cleanup_vector
LBB0_6:
	mov	w0, #0
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
	.comm	_apic,8,3                       ; @apic
	.no_dead_strip	_uv_set_irq_affinity
.subsections_via_symbols
