	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_card_type
_set_card_type:                         ## @set_card_type
	.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	%rdi, %rbx
	movq	8(%rdi), %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	movq	_CISTPL_MANFID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pcmcia_get_tuple
	cmpq	$4, %rax
	ja	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	xorl	%ebx, %ebx
	jmp	LBB0_31
LBB0_2:
	movq	-48(%rbp), %rax
	movl	8(%rax), %edx
	movl	12(%rax), %r14d
	movl	16(%rax), %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	callq	_dev_dbg
	movq	$0, (%r12)
	movl	$0, 8(%r12)
	movq	_XIR_UNKNOWN@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, 16(%r12)
	testb	$64, %r15b
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_30
LBB0_4:
	testb	$1, %r14b
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_30
LBB0_6:
	testb	$16, %r14b
	jne	LBB0_12
## %bb.7:
	movl	%r15d, %ecx
	andl	$15, %ecx
	cmpl	$3, %ecx
	je	LBB0_15
## %bb.8:
	cmpl	$2, %ecx
	je	LBB0_17
## %bb.9:
	cmpl	$1, %ecx
	jne	LBB0_25
## %bb.10:
	movq	%rbx, %rdi
	callq	_has_ce2_string
	testl	%eax, %eax
	jne	LBB0_17
## %bb.11:
	movq	_XIR_CE@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_12:
	movl	$1, 8(%r12)
	movl	%r15d, %ecx
	andl	$15, %ecx
	decl	%ecx
	cmpl	$6, %ecx
	ja	LBB0_25
## %bb.13:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_14:
	movq	_XIR_CEM56@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r12)
	movabsq	$4294967297, %rcx               ## imm = 0x100000001
	movq	%rcx, (%r12)
	jmp	LBB0_25
LBB0_17:
	movq	_XIR_CE2@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_15:
	movq	_XIR_CE3@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_18:
	movq	_XIR_CEM@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_19:
	movq	_XIR_CEM2@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_20:
	movq	_XIR_CEM3@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_21:
	movq	_XIR_CEM33@GOTPCREL(%rip), %rax
LBB0_22:
	movq	(%rax), %rax
	movq	%rax, 16(%r12)
	jmp	LBB0_25
LBB0_23:
	movq	_XIR_CEM56M@GOTPCREL(%rip), %rax
LBB0_24:
	movq	(%rax), %rax
	movq	%rax, 16(%r12)
	movl	$1, (%r12)
LBB0_25:
	movq	_XIR_CE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_29
## %bb.26:
	movq	_XIR_CEM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_29
## %bb.27:
	movl	$1, %ebx
	cmpq	(%r13), %rax
	jne	LBB0_31
## %bb.28:
	leaq	L_.str.5(%rip), %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_pr_notice
	jmp	LBB0_31
LBB0_29:
	leaq	L_.str.4(%rip), %rdi
LBB0_30:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_notice
LBB0_31:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_18
	.long	L0_0_set_19
	.long	L0_0_set_20
	.long	L0_0_set_21
	.long	L0_0_set_23
	.long	L0_0_set_14
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_CISTPL_MANFID,4,2              ## @CISTPL_MANFID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid CIS -- sorry\n"

L_.str.1:                               ## @.str.1
	.asciz	"cisrev=%02x mediaid=%02x prodid=%02x\n"

	.comm	_XIR_UNKNOWN,8,3                ## @XIR_UNKNOWN
L_.str.2:                               ## @.str.2
	.asciz	"Oops: Not a creditcard\n"

L_.str.3:                               ## @.str.3
	.asciz	"Not an Ethernet card\n"

	.comm	_XIR_CEM,8,3                    ## @XIR_CEM
	.comm	_XIR_CEM2,8,3                   ## @XIR_CEM2
	.comm	_XIR_CEM3,8,3                   ## @XIR_CEM3
	.comm	_XIR_CEM33,8,3                  ## @XIR_CEM33
	.comm	_XIR_CEM56M,8,3                 ## @XIR_CEM56M
	.comm	_XIR_CEM56,8,3                  ## @XIR_CEM56
	.comm	_XIR_CE2,8,3                    ## @XIR_CE2
	.comm	_XIR_CE,8,3                     ## @XIR_CE
	.comm	_XIR_CE3,8,3                    ## @XIR_CE3
L_.str.4:                               ## @.str.4
	.asciz	"Sorry, this is an old CE card\n"

L_.str.5:                               ## @.str.5
	.asciz	"unknown card (mediaid=%02x prodid=%02x)\n"

	.no_dead_strip	_set_card_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_card_type
_set_card_type:                         ; @set_card_type
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x22, x0
	ldr	x0, [x0, #8]
	bl	_netdev_priv
	mov	x21, x0
Lloh0:
	adrp	x8, _CISTPL_MANFID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CISTPL_MANFID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #24
	mov	x0, x22
	bl	_pcmcia_get_tuple
	cmp	x0, #4
	b.hi	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	b	LBB0_26
LBB0_2:
	ldr	x8, [sp, #24]
	ldp	w2, w19, [x8, #8]
	ldr	w20, [x8, #16]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x3, x19
	mov	x4, x20
	bl	_dev_dbg
	str	xzr, [x21]
	str	wzr, [x21, #8]
Lloh7:
	adrp	x23, _XIR_UNKNOWN@GOTPAGE
Lloh8:
	ldr	x23, [x23, _XIR_UNKNOWN@GOTPAGEOFF]
	ldr	x8, [x23]
	str	x8, [x21, #16]
	tbnz	w20, #6, LBB0_4
; %bb.3:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_25
LBB0_4:
	tbnz	w19, #0, LBB0_6
; %bb.5:
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_25
LBB0_6:
Lloh13:
	adrp	x24, _XIR_CEM@GOTPAGE
Lloh14:
	ldr	x24, [x24, _XIR_CEM@GOTPAGEOFF]
Lloh15:
	adrp	x25, _XIR_CE@GOTPAGE
Lloh16:
	ldr	x25, [x25, _XIR_CE@GOTPAGEOFF]
	tbnz	w19, #4, LBB0_11
; %bb.7:
	and	w9, w20, #0xf
	cmp	w9, #3
	b.eq	LBB0_14
; %bb.8:
	cmp	w9, #2
	b.eq	LBB0_15
; %bb.9:
	cmp	w9, #1
	b.ne	LBB0_23
; %bb.10:
	mov	x0, x22
	bl	_has_ce2_string
Lloh17:
	adrp	x8, _XIR_CE2@GOTPAGE
Lloh18:
	ldr	x8, [x8, _XIR_CE2@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x25, x8, eq
	b	LBB0_20
LBB0_11:
	mov	w9, #1
	str	w9, [x21, #8]
	and	w9, w20, #0xf
	sub	w9, w9, #1
	cmp	w9, #6
	b.hi	LBB0_23
; %bb.12:
Lloh19:
	adrp	x8, lJTI0_0@PAGE
Lloh20:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x10, LBB0_13
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_13:
Lloh21:
	adrp	x8, _XIR_CEM56@GOTPAGE
Lloh22:
	ldr	x8, [x8, _XIR_CEM56@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	str	x8, [x21, #16]
	movi.2s	v0, #1
	str	d0, [x21]
	b	LBB0_23
LBB0_14:
Lloh24:
	adrp	x8, _XIR_CE3@GOTPAGE
Lloh25:
	ldr	x8, [x8, _XIR_CE3@GOTPAGEOFF]
	b	LBB0_22
LBB0_15:
Lloh26:
	adrp	x8, _XIR_CE2@GOTPAGE
Lloh27:
	ldr	x8, [x8, _XIR_CE2@GOTPAGEOFF]
	b	LBB0_20
LBB0_16:
	ldr	x8, [x24]
	str	x8, [x21, #16]
	b	LBB0_23
LBB0_17:
Lloh28:
	adrp	x8, _XIR_CEM2@GOTPAGE
Lloh29:
	ldr	x8, [x8, _XIR_CEM2@GOTPAGEOFF]
	b	LBB0_20
LBB0_18:
Lloh30:
	adrp	x8, _XIR_CEM3@GOTPAGE
Lloh31:
	ldr	x8, [x8, _XIR_CEM3@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
Lloh32:
	adrp	x8, _XIR_CEM33@GOTPAGE
Lloh33:
	ldr	x8, [x8, _XIR_CEM33@GOTPAGEOFF]
LBB0_20:
	ldr	x8, [x8]
	str	x8, [x21, #16]
	b	LBB0_23
LBB0_21:
Lloh34:
	adrp	x8, _XIR_CEM56M@GOTPAGE
Lloh35:
	ldr	x8, [x8, _XIR_CEM56M@GOTPAGEOFF]
LBB0_22:
	ldr	x8, [x8]
	str	x8, [x21, #16]
	mov	w9, #1
	str	w9, [x21]
LBB0_23:
	ldr	x9, [x25]
	ldr	x10, [x24]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_28
; %bb.24:
Lloh36:
	adrp	x0, l_.str.4@PAGE
Lloh37:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_25:
	bl	_pr_notice
LBB0_26:
	mov	w0, #0
LBB0_27:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_28:
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_30
; %bb.29:
	stp	x19, x20, [sp]
Lloh38:
	adrp	x0, l_.str.5@PAGE
Lloh39:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pr_notice
LBB0_30:
	mov	w0, #1
	b	LBB0_27
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_16-LBB0_13)>>2
	.byte	(LBB0_17-LBB0_13)>>2
	.byte	(LBB0_18-LBB0_13)>>2
	.byte	(LBB0_19-LBB0_13)>>2
	.byte	(LBB0_21-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
                                        ; -- End function
	.comm	_CISTPL_MANFID,4,2              ; @CISTPL_MANFID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid CIS -- sorry\n"

l_.str.1:                               ; @.str.1
	.asciz	"cisrev=%02x mediaid=%02x prodid=%02x\n"

	.comm	_XIR_UNKNOWN,8,3                ; @XIR_UNKNOWN
l_.str.2:                               ; @.str.2
	.asciz	"Oops: Not a creditcard\n"

l_.str.3:                               ; @.str.3
	.asciz	"Not an Ethernet card\n"

	.comm	_XIR_CEM,8,3                    ; @XIR_CEM
	.comm	_XIR_CEM2,8,3                   ; @XIR_CEM2
	.comm	_XIR_CEM3,8,3                   ; @XIR_CEM3
	.comm	_XIR_CEM33,8,3                  ; @XIR_CEM33
	.comm	_XIR_CEM56M,8,3                 ; @XIR_CEM56M
	.comm	_XIR_CEM56,8,3                  ; @XIR_CEM56
	.comm	_XIR_CE2,8,3                    ; @XIR_CE2
	.comm	_XIR_CE,8,3                     ; @XIR_CE
	.comm	_XIR_CE3,8,3                    ; @XIR_CE3
l_.str.4:                               ; @.str.4
	.asciz	"Sorry, this is an old CE card\n"

l_.str.5:                               ; @.str.5
	.asciz	"unknown card (mediaid=%02x prodid=%02x)\n"

	.no_dead_strip	_set_card_type
.subsections_via_symbols
