	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vatpic_icw4
_vatpic_icw4:                           ## @vatpic_icw4
	.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, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	callq	_VATPIC_CTR1
	movq	_ICW4_8086@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_ICW4_AEOI@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	movl	$1, (%r14)
LBB0_4:
	movq	_ICW4_SFNM@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_master_atpic
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	$1, 4(%r14)
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_VATPIC_CTR0
	movl	$-1, %eax
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_VATPIC_CTR1
LBB0_8:
	movq	$0, 16(%r14)
	movl	$1, 8(%r14)
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"atpic icw4 0x%x"

	.comm	_ICW4_8086,4,2                  ## @ICW4_8086
L_.str.1:                               ## @.str.1
	.asciz	"vatpic microprocessor mode required"

	.comm	_ICW4_AEOI,4,2                  ## @ICW4_AEOI
	.comm	_ICW4_SFNM,4,2                  ## @ICW4_SFNM
L_.str.2:                               ## @.str.2
	.asciz	"Ignoring special fully nested mode on slave atpic: %#x"

	.no_dead_strip	_vatpic_icw4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vatpic_icw4
_vatpic_icw4:                           ; @vatpic_icw4
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_VATPIC_CTR1
Lloh2:
	adrp	x8, _ICW4_8086@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ICW4_8086@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.1:
Lloh5:
	adrp	x8, _ICW4_AEOI@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ICW4_AEOI@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x19]
LBB0_3:
Lloh8:
	adrp	x8, _ICW4_SFNM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ICW4_SFNM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.4:
	mov	x0, x21
	mov	x1, x19
	bl	_master_atpic
	cbz	x0, LBB0_7
; %bb.5:
	mov	w8, #1
	str	w8, [x19, #4]
	b	LBB0_8
LBB0_6:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_VATPIC_CTR0
	mov	w0, #-1
	b	LBB0_9
LBB0_7:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_VATPIC_CTR1
LBB0_8:
	mov	w0, #0
	str	xzr, [x19, #16]
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"atpic icw4 0x%x"

	.comm	_ICW4_8086,4,2                  ; @ICW4_8086
l_.str.1:                               ; @.str.1
	.asciz	"vatpic microprocessor mode required"

	.comm	_ICW4_AEOI,4,2                  ; @ICW4_AEOI
	.comm	_ICW4_SFNM,4,2                  ; @ICW4_SFNM
l_.str.2:                               ; @.str.2
	.asciz	"Ignoring special fully nested mode on slave atpic: %#x"

	.no_dead_strip	_vatpic_icw4
.subsections_via_symbols
