	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isapnp_isolation_protocol
_isapnp_isolation_protocol:             ## @isapnp_isolation_protocol
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	__PNP_ID_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	xorl	%eax, %eax
	callq	_isapnp_send_Initiation_LFSR
	movq	_CONFIG_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	callq	_isapnp_write
	movl	$3, %r15d
	movq	_WAKE@GOTPCREL(%rip), %r13
	movq	_SERIAL_ISOLATION@GOTPCREL(%rip), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	callq	_pnp_freeinfo
	incl	%r15d
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%r15), %ebx
	movl	(%r13), %edi
	xorl	%esi, %esi
	callq	_isapnp_write
	movq	_SET_RD_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_isapnp_readport@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	sarl	$2, %esi
	callq	_isapnp_write
	movq	__PNP_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_outb
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_delay
	movq	%r14, %rdi
	callq	_isapnp_get_serial
	testq	%rax, %rax
	je	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_SET_CSN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_isapnp_write
	xorl	%eax, %eax
	callq	_pnp_allocinfo
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_pnp_eisaformat
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_pnp_addident
	movq	%rbx, %rdi
	callq	_isapnp_scan_resdata
	movq	%rbx, %rdi
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	callq	_pnp_addinfo
	incl	%r15d
	jmp	LBB0_1
LBB0_2:
	cmpl	$2, %ebx
	movq	_CONFIG_CONTROL@GOTPCREL(%rip), %r12
	jb	LBB0_5
## %bb.3:
	movl	%r15d, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	-3(%rbx), %r14d
	xorl	%eax, %eax
	callq	_isapnp_send_Initiation_LFSR
	movl	(%r13), %edi
	movl	%r14d, %esi
	callq	_isapnp_write
	movl	(%r12), %edi
	movl	$2, %esi
	callq	_isapnp_write
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_delay
	addl	$-2, %ebx
	cmpl	$3, %ebx
	jg	LBB0_4
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.10:
	addl	$-3, %r15d
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	__PNP_ID_LEN,4,2                ## @_PNP_ID_LEN
	.comm	_CONFIG_CONTROL,4,2             ## @CONFIG_CONTROL
	.comm	_WAKE,4,2                       ## @WAKE
	.comm	_SET_RD_DATA,4,2                ## @SET_RD_DATA
	.comm	_isapnp_readport,4,2            ## @isapnp_readport
	.comm	__PNP_ADDRESS,4,2               ## @_PNP_ADDRESS
	.comm	_SERIAL_ISOLATION,4,2           ## @SERIAL_ISOLATION
	.comm	_SET_CSN,4,2                    ## @SET_CSN
	.no_dead_strip	_isapnp_isolation_protocol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isapnp_isolation_protocol
_isapnp_isolation_protocol:             ; @isapnp_isolation_protocol
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, __PNP_ID_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, __PNP_ID_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	bl	_isapnp_send_Initiation_LFSR
Lloh8:
	adrp	x21, _CONFIG_CONTROL@GOTPAGE
Lloh9:
	ldr	x21, [x21, _CONFIG_CONTROL@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	w1, #4
	bl	_isapnp_write
	mov	w22, #3
Lloh10:
	adrp	x23, _WAKE@GOTPAGE
Lloh11:
	ldr	x23, [x23, _WAKE@GOTPAGEOFF]
Lloh12:
	adrp	x24, _SET_RD_DATA@GOTPAGE
Lloh13:
	ldr	x24, [x24, _SET_RD_DATA@GOTPAGEOFF]
Lloh14:
	adrp	x25, _isapnp_readport@GOTPAGE
Lloh15:
	ldr	x25, [x25, _isapnp_readport@GOTPAGEOFF]
Lloh16:
	adrp	x26, __PNP_ADDRESS@GOTPAGE
Lloh17:
	ldr	x26, [x26, __PNP_ADDRESS@GOTPAGEOFF]
Lloh18:
	adrp	x27, _SERIAL_ISOLATION@GOTPAGE
Lloh19:
	ldr	x27, [x27, _SERIAL_ISOLATION@GOTPAGEOFF]
Lloh20:
	adrp	x28, _SET_CSN@GOTPAGE
Lloh21:
	ldr	x28, [x28, _SET_CSN@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_pnp_freeinfo
	add	w22, w22, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w20, w22, #2
	ldr	w0, [x23]
	mov	w1, #0
	bl	_isapnp_write
	ldr	w0, [x24]
	ldr	w8, [x25]
	asr	w1, w8, #2
	bl	_isapnp_write
	ldr	w0, [x26]
	ldr	w1, [x27]
	bl	_outb
	mov	w0, #1000
	bl	_delay
	mov	x0, x19
	bl	_isapnp_get_serial
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x28]
	mov	x1, x20
	bl	_isapnp_write
	bl	_pnp_allocinfo
	mov	x20, x0
	mov	x0, x19
	bl	_pnp_eisaformat
	mov	x1, x0
	mov	x0, x20
	bl	_pnp_addident
	mov	x0, x20
	bl	_isapnp_scan_resdata
	cbnz	x0, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_pnp_addinfo
	add	w22, w22, #1
	b	LBB0_2
LBB0_5:
	cmp	w20, #2
	b.lo	LBB0_8
; %bb.6:
	mov	x20, x22
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sub	w19, w20, #3
	bl	_isapnp_send_Initiation_LFSR
	ldr	w0, [x23]
	mov	x1, x19
	bl	_isapnp_write
	ldr	w0, [x21]
	mov	w1, #2
	bl	_isapnp_write
	mov	w0, #1000
	bl	_delay
	sub	w20, w20, #2
	cmp	w20, #3
	b.gt	LBB0_7
LBB0_8:
	ldur	x8, [x29, #-88]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	w0, w22, #3
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	__PNP_ID_LEN,4,2                ; @_PNP_ID_LEN
	.comm	_CONFIG_CONTROL,4,2             ; @CONFIG_CONTROL
	.comm	_WAKE,4,2                       ; @WAKE
	.comm	_SET_RD_DATA,4,2                ; @SET_RD_DATA
	.comm	_isapnp_readport,4,2            ; @isapnp_readport
	.comm	__PNP_ADDRESS,4,2               ; @_PNP_ADDRESS
	.comm	_SERIAL_ISOLATION,4,2           ; @SERIAL_ISOLATION
	.comm	_SET_CSN,4,2                    ; @SET_CSN
	.no_dead_strip	_isapnp_isolation_protocol
.subsections_via_symbols
