	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcnet_confcheck
_pcnet_confcheck:                       ## @pcnet_confcheck
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, (%rsi)
	je	LBB0_2
## %bb.1:
	movq	24(%rsi), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.3:
	xorl	%r10d, %r10d
	cmpq	$2, %rcx
	jl	LBB0_4
## %bb.5:
	movq	40(%rsi), %r11
	movq	16(%r11), %r9
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	cmpq	(%r11), %r9
	setg	%cl
	setle	%al
	shlq	$4, %rax
	movl	8(%r11,%rax), %edx
	movl	%edx, 24(%rdi)
	movq	(%r11,%rax), %r9
	jmp	LBB0_6
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_4:
	xorl	%r9d, %r9d
	xorl	%ecx, %ecx
LBB0_6:
	movq	%r9, (%rdi)
	cmpl	$1, 8(%rsi)
	jne	LBB0_8
## %bb.7:
	movq	16(%rsi), %rax
	xorl	%r10d, %r10d
	cmpl	$16384, (%rax)                  ## imm = 0x4000
	setge	%r10b
LBB0_8:
	movl	%r10d, (%r8)
	movq	40(%rsi), %rax
	shlq	$4, %rcx
	movl	8(%rax,%rcx), %edx
	movl	%edx, 20(%rdi)
	movq	(%rax,%rcx), %rax
	movq	%rax, 8(%rdi)
	movq	_CISTPL_IO_LINES_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	32(%rsi), %ecx
	movl	%ecx, 16(%rdi)
	addq	%rax, %r9
	xorl	%eax, %eax
	cmpq	$32, %r9
	jl	LBB0_9
## %bb.10:
	popq	%rbp
	jmp	_try_io_port                    ## TAILCALL
LBB0_9:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CISTPL_IO_LINES_MASK,4,2       ## @CISTPL_IO_LINES_MASK
	.no_dead_strip	_pcnet_confcheck
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcnet_confcheck
_pcnet_confcheck:                       ; @pcnet_confcheck
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x1, #24]
	cbz	x8, LBB0_4
; %bb.2:
	cmp	x8, #2
	b.lt	LBB0_5
; %bb.3:
	ldr	x8, [x1, #40]
	ldr	x9, [x8, #16]
	ldr	x10, [x8]
	cmp	x9, x10
	cset	w9, gt
	cset	w10, le
	add	x8, x8, w10, uxtw #4
	ldr	w10, [x8, #8]
	str	w10, [x0, #24]
	ldr	x8, [x8]
	b	LBB0_6
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_5:
	mov	x8, #0
	mov	x9, #0
LBB0_6:
	str	x8, [x0]
	ldr	w10, [x1, #8]
	cmp	w10, #1
	b.ne	LBB0_8
; %bb.7:
	ldr	x10, [x1, #16]
	ldr	w10, [x10]
	cmp	w10, #4, lsl #12                ; =16384
	cset	w10, ge
	b	LBB0_9
LBB0_8:
	mov	w10, #0
LBB0_9:
	str	w10, [x4]
	ldr	x10, [x1, #40]
	add	x9, x10, x9, lsl #4
	ldr	w10, [x9, #8]
	ldr	x9, [x9]
	str	x9, [x0, #8]
	ldr	w11, [x1, #32]
Lloh3:
	adrp	x12, _CISTPL_IO_LINES_MASK@GOTPAGE
Lloh4:
	ldr	x12, [x12, _CISTPL_IO_LINES_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x12]
	and	w11, w12, w11
	stp	w11, w10, [x0, #16]
	add	x8, x8, x9
	cmp	x8, #32
	b.lt	LBB0_11
; %bb.10:
	b	_try_io_port
LBB0_11:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CISTPL_IO_LINES_MASK,4,2       ; @CISTPL_IO_LINES_MASK
	.no_dead_strip	_pcnet_confcheck
.subsections_via_symbols
