	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vga_update_device_decodes
_vga_update_device_decodes:             ## @vga_update_device_decodes
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	32(%rdi), %r14
	movl	(%rdi), %edi
	movl	%esi, %r12d
	notl	%r12d
	andl	%edi, %r12d
	movl	%esi, (%rbx)
	movl	4(%rbx), %r13d
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	callq	_vga_iostate_to_str
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %edi
	callq	_vga_iostate_to_str
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	8(%rbx), %edi
	callq	_vga_iostate_to_str
	leaq	L_.str(%rip), %rsi
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, %r8d
	callq	_vgaarb_info
	andl	%r12d, %r13d
	je	LBB0_6
## %bb.1:
	movq	_VGA_RSRC_LEGACY_IO@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_3
## %bb.2:
	movq	$0, 24(%rbx)
LBB0_3:
	movq	_VGA_RSRC_LEGACY_MEM@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_5
## %bb.4:
	movq	$0, 16(%rbx)
LBB0_5:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	___vga_put
LBB0_6:
	movq	_VGA_RSRC_LEGACY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%eax, %r15d
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	testl	%esi, %eax
	je	LBB0_9
## %bb.7:
	testl	%r15d, %r15d
	jne	LBB0_9
## %bb.8:
	movq	_vga_decode_count@GOTPCREL(%rip), %rcx
	decl	(%rcx)
LBB0_9:
	movq	_vga_decode_count@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%esi, %eax
	jne	LBB0_12
## %bb.10:
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.11:
	incl	%edx
	movl	%edx, (%rcx)
LBB0_12:
	leaq	L_.str.1(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vgaarb_dbg                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"changed VGA decodes: olddecodes=%s,decodes=%s:owns=%s\n"

	.comm	_VGA_RSRC_LEGACY_IO,4,2         ## @VGA_RSRC_LEGACY_IO
	.comm	_VGA_RSRC_LEGACY_MEM,4,2        ## @VGA_RSRC_LEGACY_MEM
	.comm	_VGA_RSRC_LEGACY_MASK,4,2       ## @VGA_RSRC_LEGACY_MASK
	.comm	_vga_decode_count,4,2           ## @vga_decode_count
L_.str.1:                               ## @.str.1
	.asciz	"decoding count now is: %d\n"

	.no_dead_strip	_vga_update_device_decodes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vga_update_device_decodes
_vga_update_device_decodes:             ; @vga_update_device_decodes
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x22, x0
	ldr	x19, [x0, #32]
	ldp	w21, w8, [x0]
	bic	w9, w21, w1
	and	w23, w9, w8
	str	w1, [x0]
	mov	x0, x21
	bl	_vga_iostate_to_str
	mov	x24, x0
	ldr	w0, [x22]
	bl	_vga_iostate_to_str
	mov	x25, x0
	ldr	w0, [x22, #8]
	bl	_vga_iostate_to_str
	mov	x4, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x24
	mov	x3, x25
	bl	_vgaarb_info
	cbz	w23, LBB0_6
; %bb.1:
Lloh2:
	adrp	x8, _VGA_RSRC_LEGACY_IO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VGA_RSRC_LEGACY_IO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_3
; %bb.2:
	str	xzr, [x22, #24]
LBB0_3:
Lloh5:
	adrp	x8, _VGA_RSRC_LEGACY_MEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VGA_RSRC_LEGACY_MEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_5
; %bb.4:
	str	xzr, [x22, #16]
LBB0_5:
	mov	x0, x22
	mov	x1, x23
	bl	___vga_put
LBB0_6:
Lloh8:
	adrp	x8, _VGA_RSRC_LEGACY_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VGA_RSRC_LEGACY_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	and	w9, w8, w21
	and	w10, w8, w20
	cmp	w9, #0
	ccmp	w10, #0, #0, ne
Lloh11:
	adrp	x8, _vga_decode_count@GOTPAGE
Lloh12:
	ldr	x8, [x8, _vga_decode_count@GOTPAGEOFF]
	b.ne	LBB0_8
; %bb.7:
	ldr	w11, [x8]
	sub	w11, w11, #1
	str	w11, [x8]
LBB0_8:
	ldr	w2, [x8]
	cmp	w9, #0
	ccmp	w10, #0, #4, eq
	b.eq	LBB0_10
; %bb.9:
	add	w2, w2, #1
	str	w2, [x8]
LBB0_10:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_vgaarb_dbg
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"changed VGA decodes: olddecodes=%s,decodes=%s:owns=%s\n"

	.comm	_VGA_RSRC_LEGACY_IO,4,2         ; @VGA_RSRC_LEGACY_IO
	.comm	_VGA_RSRC_LEGACY_MEM,4,2        ; @VGA_RSRC_LEGACY_MEM
	.comm	_VGA_RSRC_LEGACY_MASK,4,2       ; @VGA_RSRC_LEGACY_MASK
	.comm	_vga_decode_count,4,2           ; @vga_decode_count
l_.str.1:                               ; @.str.1
	.asciz	"decoding count now is: %d\n"

	.no_dead_strip	_vga_update_device_decodes
.subsections_via_symbols
