	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vatpic_set_irq_trigger         ## -- Begin function vatpic_set_irq_trigger
	.p2align	4, 0x90
_vatpic_set_irq_trigger:                ## @vatpic_set_irq_trigger
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$16, %esi
	jae	LBB0_1
## %bb.2:
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	_LEVEL_TRIGGER@GOTPCREL(%rip), %r12
	cmpl	%edx, (%r12)
	jne	LBB0_5
## %bb.3:
	cmpl	$13, %ebx
	ja	LBB0_5
## %bb.4:
	movl	$8455, %eax                     ## imm = 0x2107
	btl	%ebx, %eax
	jae	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_5:
	callq	_vm_atpic
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_VATPIC_LOCK
	movl	%ebx, %ecx
	andb	$7, %cl
	movl	$1, %eax
	shll	%cl, %eax
	cmpl	%r14d, (%r12)
	jne	LBB0_7
## %bb.6:
	movq	(%r15), %rcx
	shrl	$3, %ebx
	orl	%eax, (%rcx,%rbx,4)
	jmp	LBB0_8
LBB0_7:
	notl	%eax
	movq	(%r15), %rcx
	shrl	$3, %ebx
	andl	%eax, (%rcx,%rbx,4)
LBB0_8:
	movq	%r15, %rdi
	callq	_VATPIC_UNLOCK
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_LEVEL_TRIGGER,4,2              ## @LEVEL_TRIGGER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vatpic_set_irq_trigger         ; -- Begin function vatpic_set_irq_trigger
	.p2align	2
_vatpic_set_irq_trigger:                ; @vatpic_set_irq_trigger
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cmp	w1, #16
	b.hs	LBB0_4
; %bb.1:
	mov	x20, x2
	mov	x19, x1
Lloh0:
	adrp	x22, _LEVEL_TRIGGER@GOTPAGE
Lloh1:
	ldr	x22, [x22, _LEVEL_TRIGGER@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, w2
	ccmp	w1, #13, #2, eq
	mov	w23, #1
	lsl	w8, w23, w1
	mov	w9, #8455
	and	w8, w8, w9
	ccmp	w8, #0, #4, ls
	b.ne	LBB0_4
; %bb.2:
	bl	_vm_atpic
	mov	x21, x0
	bl	_VATPIC_LOCK
	ldr	w9, [x22]
	and	w8, w19, #0x7
	lsl	w8, w23, w8
	cmp	w9, w20
	b.ne	LBB0_5
; %bb.3:
	ldr	x9, [x21]
	lsr	w10, w19, #3
	lsl	x10, x10, #2
	ldr	w11, [x9, x10]
	orr	w8, w11, w8
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_5:
	ldr	x9, [x21]
	lsr	w10, w19, #3
	lsl	x10, x10, #2
	ldr	w11, [x9, x10]
	bic	w8, w11, w8
LBB0_6:
	str	w8, [x9, x10]
	mov	x0, x21
	bl	_VATPIC_UNLOCK
	mov	w0, #0
LBB0_7:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_LEVEL_TRIGGER,4,2              ; @LEVEL_TRIGGER
.subsections_via_symbols
