	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8180_config_cardbus
_rtl8180_config_cardbus:                ## @rtl8180_config_cardbus
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rbx
	movq	8(%rbx), %rsi
	addq	$4, %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_ioread8
	orl	$2, %eax
	movq	8(%rbx), %rsi
	addq	$4, %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_rtl818x_iowrite8
	movq	(%rbx), %rax
	movq	_RTL818X_CHIP_FAMILY_RTL8187SE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	_FEMR_SE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$65535, %edx                    ## imm = 0xFFFF
	jmp	LBB0_2
LBB0_3:
	movq	8(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_ioread16
	orl	$49168, %eax                    ## imm = 0xC010
	movq	8(%rbx), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_rtl818x_iowrite16              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL818X_CHIP_FAMILY_RTL8187SE,8,3 ## @RTL818X_CHIP_FAMILY_RTL8187SE
	.comm	_FEMR_SE,8,3                    ## @FEMR_SE
	.no_dead_strip	_rtl8180_config_cardbus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8180_config_cardbus
_rtl8180_config_cardbus:                ; @rtl8180_config_cardbus
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
	ldr	x8, [x19, #8]
	add	x1, x8, #4
	mov	x0, x19
	bl	_rtl818x_ioread8
	orr	w2, w0, #0x2
	ldr	x8, [x19, #8]
	add	x1, x8, #4
	mov	x0, x19
	bl	_rtl818x_iowrite8
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _RTL818X_CHIP_FAMILY_RTL8187SE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RTL818X_CHIP_FAMILY_RTL8187SE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _FEMR_SE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FEMR_SE@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #65535
	b	LBB0_3
LBB0_2:
	ldr	x1, [x19, #8]
	mov	x0, x19
	bl	_rtl818x_ioread16
	mov	w8, #49168
	orr	w2, w0, w8
	ldr	x1, [x19, #8]
	mov	x0, x19
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rtl818x_iowrite16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL818X_CHIP_FAMILY_RTL8187SE,8,3 ; @RTL818X_CHIP_FAMILY_RTL8187SE
	.comm	_FEMR_SE,8,3                    ; @FEMR_SE
	.no_dead_strip	_rtl8180_config_cardbus
.subsections_via_symbols
