	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcnet_try_config
_pcnet_try_config:                      ## @pcnet_try_config
	.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
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	48(%rdi), %r14
	movq	%r14, %rdi
	callq	_PRIV
	movq	%rax, %r15
	movl	%ebx, -44(%rbp)
	movq	_pcnet_confcheck@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_pcmcia_loop_config
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	addq	$16, %r13
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_warn
LBB0_2:
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	-44(%rbp), %eax
	andl	$16, %eax
	movl	%eax, (%r12)
	cmpq	$0, 32(%r13)
	je	LBB0_2
## %bb.5:
	movq	24(%r13), %rax
	movq	8(%rax), %rdi
	callq	_resource_size
	cmpl	$8, %eax
	jne	LBB0_7
## %bb.6:
	movq	_CONF_ENABLE_SPKR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 40(%r13)
LBB0_7:
	movl	(%r13), %eax
	movq	_MANFID_IBM@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.8:
	movl	4(%r13), %eax
	movq	_PRODID_IBM_HOME_AND_AWAY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.9:
	orb	$16, 8(%r13)
LBB0_10:
	movq	%r13, %rdi
	callq	_pcmcia_enable_device
	testl	%eax, %eax
	jne	LBB0_2
## %bb.13:
	movq	32(%r13), %rax
	movq	%rax, 8(%r14)
	movq	24(%r13), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_HAS_MISC_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_16
## %bb.14:
	movq	_if_port@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	-1(%rax), %ecx
	cmpl	$1, %ecx
	ja	LBB0_17
## %bb.15:
	movl	%eax, (%r14)
	cmpl	$960, 12(%r13)                  ## imm = 0x3C0
	je	LBB0_18
	jmp	LBB0_21
LBB0_16:
	movl	$0, (%r14)
	cmpl	$960, 12(%r13)                  ## imm = 0x3C0
	je	LBB0_18
	jmp	LBB0_21
LBB0_17:
	leaq	16(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_notice
	cmpl	$960, 12(%r13)                  ## imm = 0x3C0
	jne	LBB0_21
LBB0_18:
	cmpl	$329, (%r13)                    ## imm = 0x149
	jne	LBB0_21
## %bb.19:
	cmpl	$49579, 4(%r13)                 ## imm = 0xC1AB
	jne	LBB0_21
## %bb.20:
	addq	$16, %r13
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_info
	jmp	LBB0_2
LBB0_21:
	movq	%r13, %rdi
	callq	_get_hwinfo
	testq	%rax, %rax
	jne	LBB0_3
## %bb.22:
	movq	%r13, %rdi
	callq	_get_prom
	testq	%rax, %rax
	jne	LBB0_3
## %bb.23:
	movq	%r13, %rdi
	callq	_get_dl10019
	testq	%rax, %rax
	jne	LBB0_3
## %bb.24:
	movq	%r13, %rdi
	callq	_get_ax88190
	testq	%rax, %rax
	jne	LBB0_3
## %bb.25:
	movq	%r13, %rdi
	callq	_get_hwired
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_pcnet_confcheck,4,2            ## @pcnet_confcheck
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no useable port range found\n"

	.comm	_CONF_ENABLE_SPKR,4,2           ## @CONF_ENABLE_SPKR
	.comm	_MANFID_IBM,4,2                 ## @MANFID_IBM
	.comm	_PRODID_IBM_HOME_AND_AWAY,4,2   ## @PRODID_IBM_HOME_AND_AWAY
	.comm	_HAS_MISC_REG,4,2               ## @HAS_MISC_REG
	.comm	_if_port,4,2                    ## @if_port
L_.str.1:                               ## @.str.1
	.asciz	"invalid if_port requested\n"

L_.str.2:                               ## @.str.2
	.asciz	"this is an AX88190 card - use axnet_cs instead.\n"

	.no_dead_strip	_pcnet_try_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcnet_try_config
_pcnet_try_config:                      ; @pcnet_try_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x20, [x0, #48]
	mov	x0, x20
	bl	_PRIV
	mov	x21, x0
	str	w23, [sp, #12]
Lloh0:
	adrp	x8, _pcnet_confcheck@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pcnet_confcheck@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_pcmcia_loop_config
	cbz	w0, LBB0_4
; %bb.1:
	add	x0, x19, #16
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_2:
	mov	x0, #0
LBB0_3:
	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
	add	sp, sp, #80
	ret
LBB0_4:
	ldr	w8, [sp, #12]
	and	w8, w8, #0x10
	str	w8, [x22]
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_2
; %bb.5:
	ldr	x8, [x19, #24]
	ldr	x0, [x8, #8]
	bl	_resource_size
	cmp	w0, #8
	b.ne	LBB0_7
; %bb.6:
Lloh5:
	adrp	x8, _CONF_ENABLE_SPKR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CONF_ENABLE_SPKR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19, #40]
	orr	w8, w9, w8
	str	w8, [x19, #40]
LBB0_7:
	ldr	w8, [x19]
Lloh8:
	adrp	x9, _MANFID_IBM@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MANFID_IBM@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.8:
	ldr	w8, [x19, #4]
Lloh11:
	adrp	x9, _PRODID_IBM_HOME_AND_AWAY@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PRODID_IBM_HOME_AND_AWAY@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.9:
	ldr	w8, [x19, #8]
	orr	w8, w8, #0x10
	str	w8, [x19, #8]
LBB0_10:
	mov	x0, x19
	bl	_pcmcia_enable_device
	cbnz	w0, LBB0_2
; %bb.11:
	ldp	x9, x8, [x19, #24]
	str	x8, [x20, #8]
	ldr	x8, [x9]
	ldr	w8, [x8]
	str	w8, [x20, #4]
	ldr	w8, [x21]
Lloh14:
	adrp	x9, _HAS_MISC_REG@GOTPAGE
Lloh15:
	ldr	x9, [x9, _HAS_MISC_REG@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.12:
Lloh17:
	adrp	x8, _if_port@GOTPAGE
Lloh18:
	ldr	x8, [x8, _if_port@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	sub	w9, w8, #1
	cmp	w9, #1
	b.hi	LBB0_15
; %bb.13:
	str	w8, [x20]
	b	LBB0_16
LBB0_14:
	str	wzr, [x20]
	b	LBB0_16
LBB0_15:
	add	x0, x19, #16
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_notice
LBB0_16:
	ldr	w8, [x19, #12]
	cmp	w8, #960
	b.ne	LBB0_20
; %bb.17:
	ldr	w8, [x19]
	cmp	w8, #329
	b.ne	LBB0_20
; %bb.18:
	ldr	w8, [x19, #4]
	mov	w9, #49579
	cmp	w8, w9
	b.ne	LBB0_20
; %bb.19:
	add	x0, x19, #16
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_info
	b	LBB0_2
LBB0_20:
	mov	x0, x19
	bl	_get_hwinfo
	cbnz	x0, LBB0_3
; %bb.21:
	mov	x0, x19
	bl	_get_prom
	cbnz	x0, LBB0_3
; %bb.22:
	mov	x0, x19
	bl	_get_dl10019
	cbnz	x0, LBB0_3
; %bb.23:
	mov	x0, x19
	bl	_get_ax88190
	cbnz	x0, LBB0_3
; %bb.24:
	mov	x0, x19
	bl	_get_hwired
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_pcnet_confcheck,4,2            ; @pcnet_confcheck
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no useable port range found\n"

	.comm	_CONF_ENABLE_SPKR,4,2           ; @CONF_ENABLE_SPKR
	.comm	_MANFID_IBM,4,2                 ; @MANFID_IBM
	.comm	_PRODID_IBM_HOME_AND_AWAY,4,2   ; @PRODID_IBM_HOME_AND_AWAY
	.comm	_HAS_MISC_REG,4,2               ; @HAS_MISC_REG
	.comm	_if_port,4,2                    ; @if_port
l_.str.1:                               ; @.str.1
	.asciz	"invalid if_port requested\n"

l_.str.2:                               ; @.str.2
	.asciz	"this is an AX88190 card - use axnet_cs instead.\n"

	.no_dead_strip	_pcnet_try_config
.subsections_via_symbols
