	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vatpic_icw1
_vatpic_icw1:                           ## @vatpic_icw1
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	callq	_VATPIC_CTR1
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rbx)
	movl	$7, 8(%rbx)
	movups	%xmm0, 16(%rbx)
	movq	$0, 32(%rbx)
	movq	_ICW1_SNGL@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_3
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	callq	_VATPIC_CTR0
	movl	$-1, %eax
	jmp	LBB0_6
LBB0_3:
	movq	_ICW1_IC4@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_4
## %bb.5:
	movl	$2, 4(%rbx)
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"atpic icw1 0x%x"

	.comm	_ICW1_SNGL,4,2                  ## @ICW1_SNGL
L_.str.1:                               ## @.str.1
	.asciz	"vatpic cascade mode required"

	.comm	_ICW1_IC4,4,2                   ## @ICW1_IC4
L_.str.2:                               ## @.str.2
	.asciz	"vatpic icw4 required"

	.no_dead_strip	_vatpic_icw1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function vatpic_icw1
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_vatpic_icw1:                           ; @vatpic_icw1
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_VATPIC_CTR1
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20]
	stp	xzr, xzr, [x20, #40]
	mov	w8, #7
	str	w8, [x20, #8]
	stp	xzr, xzr, [x20, #24]
	str	xzr, [x20, #16]
Lloh4:
	adrp	x8, _ICW1_SNGL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ICW1_SNGL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_3
; %bb.1:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_2:
	mov	x0, x19
	bl	_VATPIC_CTR0
	mov	w0, #-1
	b	LBB0_5
LBB0_3:
Lloh9:
	adrp	x8, _ICW1_IC4@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ICW1_IC4@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.4:
	mov	w0, #0
	mov	w8, #2
	str	w8, [x20, #4]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"atpic icw1 0x%x"

	.comm	_ICW1_SNGL,4,2                  ; @ICW1_SNGL
l_.str.1:                               ; @.str.1
	.asciz	"vatpic cascade mode required"

	.comm	_ICW1_IC4,4,2                   ; @ICW1_IC4
l_.str.2:                               ; @.str.2
	.asciz	"vatpic icw4 required"

	.no_dead_strip	_vatpic_icw1
.subsections_via_symbols
