	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_w6692
_setup_w6692:                           ## @setup_w6692
	.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
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	movl	(%rbx), %edx
	movl	$256, %esi                      ## imm = 0x100
	callq	_request_region
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_W6692Version
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	%rax, (%rcx)
	addq	$64, %rax
	movq	%rax, 8(%rcx)
	movq	_W_ISTA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ReadW6692
	movq	_debug@GOTPCREL(%rip), %r15
	movq	_DEBUG_HW@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	testl	%ecx, (%r15)
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %edx
	callq	_pr_notice
LBB0_4:
	movq	_W_IMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ReadW6692
	movl	(%r14), %ecx
	testl	%ecx, (%r15)
	je	LBB0_6
## %bb.5:
	movl	(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %edx
	callq	_pr_notice
LBB0_6:
	movq	_W_D_EXIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ReadW6692
	movl	(%r14), %ecx
	testl	%ecx, (%r15)
	je	LBB0_8
## %bb.7:
	movl	(%rbx), %esi
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %edx
	callq	_pr_notice
LBB0_8:
	movq	_W_D_EXIM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ReadW6692
	movl	(%r14), %ecx
	testl	%ecx, (%r15)
	je	LBB0_10
## %bb.9:
	movl	(%rbx), %esi
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %edx
	callq	_pr_notice
LBB0_10:
	movq	_W_D_RSTA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ReadW6692
	movl	(%r14), %ecx
	xorl	%r14d, %r14d
	testl	%ecx, (%r15)
	je	LBB0_12
## %bb.11:
	movl	(%rbx), %esi
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %edx
	callq	_pr_notice
	jmp	LBB0_12
LBB0_1:
	movl	(%rbx), %esi
	movq	8(%rbx), %rdx
	leaq	255(%rdx), %rcx
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_12:
	movl	%r14d, %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	"%s: config port %x-%x already in use\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_W_ISTA,4,2                     ## @W_ISTA
	.comm	_debug,4,2                      ## @debug
	.comm	_DEBUG_HW,4,2                   ## @DEBUG_HW
L_.str.1:                               ## @.str.1
	.asciz	"%s ISTA=%02x\n"

	.comm	_W_IMASK,4,2                    ## @W_IMASK
L_.str.2:                               ## @.str.2
	.asciz	"%s IMASK=%02x\n"

	.comm	_W_D_EXIR,4,2                   ## @W_D_EXIR
L_.str.3:                               ## @.str.3
	.asciz	"%s D_EXIR=%02x\n"

	.comm	_W_D_EXIM,4,2                   ## @W_D_EXIM
L_.str.4:                               ## @.str.4
	.asciz	"%s D_EXIM=%02x\n"

	.comm	_W_D_RSTA,4,2                   ## @W_D_RSTA
L_.str.5:                               ## @.str.5
	.asciz	"%s D_RSTA=%02x\n"

	.no_dead_strip	_setup_w6692
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_w6692
_setup_w6692:                           ; @setup_w6692
	.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	x19, x0
	ldr	x0, [x0, #8]
	ldr	w2, [x19]
	mov	w1, #256
	bl	_request_region
	cbz	w0, LBB0_12
; %bb.1:
	mov	x0, x19
	bl	_W6692Version
	ldp	x8, x9, [x19, #8]
	add	x10, x8, #64
	stp	x8, x10, [x9]
Lloh0:
	adrp	x8, _W_ISTA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _W_ISTA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ReadW6692
Lloh3:
	adrp	x20, _debug@GOTPAGE
Lloh4:
	ldr	x20, [x20, _debug@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh5:
	adrp	x21, _DEBUG_HW@GOTPAGE
Lloh6:
	ldr	x21, [x21, _DEBUG_HW@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	mov	x2, x0
	ldr	w1, [x19]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_notice
LBB0_3:
Lloh9:
	adrp	x8, _W_IMASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _W_IMASK@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ReadW6692
	ldr	w8, [x20]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	mov	x2, x0
	ldr	w1, [x19]
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_notice
LBB0_5:
Lloh14:
	adrp	x8, _W_D_EXIR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _W_D_EXIR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ReadW6692
	ldr	w8, [x20]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	mov	x2, x0
	ldr	w1, [x19]
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_notice
LBB0_7:
Lloh19:
	adrp	x8, _W_D_EXIM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _W_D_EXIM@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ReadW6692
	ldr	w8, [x20]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	mov	x2, x0
	ldr	w1, [x19]
Lloh22:
	adrp	x0, l_.str.4@PAGE
Lloh23:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_notice
LBB0_9:
Lloh24:
	adrp	x8, _W_D_RSTA@GOTPAGE
Lloh25:
	ldr	x8, [x8, _W_D_RSTA@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ReadW6692
	ldr	w8, [x20]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	mov	x2, x0
	ldr	w1, [x19]
Lloh27:
	adrp	x0, l_.str.5@PAGE
Lloh28:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pr_notice
LBB0_11:
	mov	w0, #0
	b	LBB0_13
LBB0_12:
	ldr	w1, [x19]
	ldr	x2, [x19, #8]
	add	x3, x2, #255
Lloh29:
	adrp	x0, l_.str@PAGE
Lloh30:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
Lloh31:
	adrp	x8, _EIO@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: config port %x-%x already in use\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_W_ISTA,4,2                     ; @W_ISTA
	.comm	_debug,4,2                      ; @debug
	.comm	_DEBUG_HW,4,2                   ; @DEBUG_HW
l_.str.1:                               ; @.str.1
	.asciz	"%s ISTA=%02x\n"

	.comm	_W_IMASK,4,2                    ; @W_IMASK
l_.str.2:                               ; @.str.2
	.asciz	"%s IMASK=%02x\n"

	.comm	_W_D_EXIR,4,2                   ; @W_D_EXIR
l_.str.3:                               ; @.str.3
	.asciz	"%s D_EXIR=%02x\n"

	.comm	_W_D_EXIM,4,2                   ; @W_D_EXIM
l_.str.4:                               ; @.str.4
	.asciz	"%s D_EXIM=%02x\n"

	.comm	_W_D_RSTA,4,2                   ; @W_D_RSTA
l_.str.5:                               ; @.str.5
	.asciz	"%s D_RSTA=%02x\n"

	.no_dead_strip	_setup_w6692
.subsections_via_symbols
