	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function device_mode
_device_mode:                           ## @device_mode
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movl	%edi, %r12d
	movl	$17408, -48(%rbp)               ## imm = 0x4400
	movl	%edi, -44(%rbp)
	leaq	-48(%rbp), %rsi
	movl	$33, %edi
	callq	___dpmi_int
	movl	$-1, %r14d
	testb	$1, -40(%rbp)
	jne	LBB0_4
## %bb.1:
	movl	-36(%rbp), %ebx
	testb	$-128, %bl
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	testl	%r15d, %r15d
	setne	%al
	movl	%ebx, %ecx
	andl	$223, %ecx
	shll	$5, %eax
	orl	%ecx, %eax
	movl	$17409, -48(%rbp)               ## imm = 0x4401
	movl	%r12d, -44(%rbp)
	movl	%eax, -36(%rbp)
	leaq	-48(%rbp), %rsi
	movl	$33, %edi
	callq	___dpmi_int
	testb	$1, -40(%rbp)
	jne	LBB0_4
LBB0_3:
	shrl	$5, %ebx
	andl	$1, %ebx
	movl	%ebx, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_device_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function device_mode
_device_mode:                           ; @device_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	mov	w8, #17408
	stp	w8, w0, [sp]
	mov	x1, sp
	mov	w0, #33
	bl	___dpmi_int
	ldrb	w8, [sp, #8]
	tbnz	w8, #0, LBB0_4
; %bb.1:
	ldr	w21, [sp, #12]
	tbz	w21, #7, LBB0_3
; %bb.2:
	cmp	w20, #0
	cset	w8, ne
	mov	w9, #223
	and	w9, w21, w9
	bfi	w9, w8, #5, #1
	mov	w8, #17409
	stp	w8, w19, [sp]
	str	w9, [sp, #12]
	mov	x1, sp
	mov	w0, #33
	bl	___dpmi_int
	ldrb	w8, [sp, #8]
	tbnz	w8, #0, LBB0_4
LBB0_3:
	ubfx	w0, w21, #5, #1
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_device_mode
.subsections_via_symbols
