	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vatpic_ocw3
_vatpic_ocw3:                           ## @vatpic_ocw3
	.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	_OCW3_ESMM@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_OCW3_SMM@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	andl	%ebx, %eax
	setne	%cl
	movl	%ecx, (%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_master_atpic
	testq	%rax, %rax
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	cmpl	$0, (%r14)
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_VATPIC_CTR2
LBB0_2:
	movq	_OCW3_RR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_OCW3_RIS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	movl	%eax, 4(%r14)
	movq	_OCW3_P@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	andl	(%rax), %ebx
	setne	%cl
	movl	%ecx, 8(%r14)
LBB0_4:
	xorl	%eax, %eax
	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 ocw3 0x%x"

	.comm	_OCW3_ESMM,4,2                  ## @OCW3_ESMM
	.comm	_OCW3_SMM,4,2                   ## @OCW3_SMM
L_.str.1:                               ## @.str.1
	.asciz	"%s atpic special mask mode %s"

L_.str.2:                               ## @.str.2
	.asciz	"master"

L_.str.3:                               ## @.str.3
	.asciz	"slave"

L_.str.4:                               ## @.str.4
	.asciz	"enabled"

L_.str.5:                               ## @.str.5
	.asciz	"disabled"

	.comm	_OCW3_RR,4,2                    ## @OCW3_RR
	.comm	_OCW3_RIS,4,2                   ## @OCW3_RIS
	.comm	_OCW3_P,4,2                     ## @OCW3_P
	.no_dead_strip	_vatpic_ocw3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vatpic_ocw3
_vatpic_ocw3:                           ; @vatpic_ocw3
	.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, _OCW3_ESMM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OCW3_ESMM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _OCW3_SMM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OCW3_SMM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w20
	cset	w8, ne
	str	w8, [x19]
	mov	x0, x21
	mov	x1, x19
	bl	_master_atpic
Lloh8:
	adrp	x8, l_.str.2@PAGE
Lloh9:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh10:
	adrp	x9, l_.str.3@PAGE
Lloh11:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	x0, #0
	csel	x2, x9, x8, eq
	ldr	w8, [x19]
Lloh12:
	adrp	x9, l_.str.4@PAGE
Lloh13:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh14:
	adrp	x10, l_.str.5@PAGE
Lloh15:
	add	x10, x10, l_.str.5@PAGEOFF
	cmp	w8, #0
	csel	x3, x10, x9, eq
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_VATPIC_CTR2
LBB0_2:
Lloh18:
	adrp	x8, _OCW3_RR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OCW3_RR@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
Lloh21:
	adrp	x8, _OCW3_RIS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _OCW3_RIS@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _OCW3_P@GOTPAGE
Lloh25:
	ldr	x9, [x9, _OCW3_P@GOTPAGEOFF]
	and	w8, w8, w20
Lloh26:
	ldr	w9, [x9]
	tst	w9, w20
	cset	w9, ne
	stp	w8, w9, [x19, #4]
LBB0_4:
	mov	w0, #0
	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 AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"atpic ocw3 0x%x"

	.comm	_OCW3_ESMM,4,2                  ; @OCW3_ESMM
	.comm	_OCW3_SMM,4,2                   ; @OCW3_SMM
l_.str.1:                               ; @.str.1
	.asciz	"%s atpic special mask mode %s"

l_.str.2:                               ; @.str.2
	.asciz	"master"

l_.str.3:                               ; @.str.3
	.asciz	"slave"

l_.str.4:                               ; @.str.4
	.asciz	"enabled"

l_.str.5:                               ; @.str.5
	.asciz	"disabled"

	.comm	_OCW3_RR,4,2                    ; @OCW3_RR
	.comm	_OCW3_RIS,4,2                   ; @OCW3_RIS
	.comm	_OCW3_P,4,2                     ; @OCW3_P
	.no_dead_strip	_vatpic_ocw3
.subsections_via_symbols
