	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8187_add_interface
_rtl8187_add_interface:                 ## @rtl8187_add_interface
	.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	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rdi), %r13
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movq	%r13, %rdi
	callq	_mutex_lock
	cmpq	$0, 16(%r13)
	jne	LBB0_6
## %bb.1:
	movl	(%r14), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.2:
	movq	%r14, 16(%r13)
	movq	%r12, 24(%r14)
	leaq	20(%r14), %rdi
	movq	_rtl8187_beacon_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movl	$0, 16(%r14)
	movq	8(%r13), %rsi
	movq	_RTL818X_EEPROM_CMD_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_rtl818x_iowrite8
	movq	_ETH_ALEN@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	8(%rax), %rsi
	addq	%rbx, %rsi
	movq	8(%r14), %rax
	movl	(%rax,%rbx), %edx
	movq	%r13, %rdi
	callq	_rtl818x_iowrite8
	incq	%r12
	movslq	(%r15), %rax
	addq	$4, %rbx
	cmpq	%rax, %r12
	jl	LBB0_4
LBB0_5:
	movq	8(%r13), %rsi
	movq	_RTL818X_EEPROM_CMD_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_rtl818x_iowrite8
	xorl	%r15d, %r15d
LBB0_6:
	movq	%r13, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_rtl8187_beacon_work,4,2        ## @rtl8187_beacon_work
	.comm	_RTL818X_EEPROM_CMD_CONFIG,4,2  ## @RTL818X_EEPROM_CMD_CONFIG
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_RTL818X_EEPROM_CMD_NORMAL,4,2  ## @RTL818X_EEPROM_CMD_NORMAL
	.no_dead_strip	_rtl8187_add_interface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8187_add_interface
_rtl8187_add_interface:                 ; @rtl8187_add_interface
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x22, x0
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_6
; %bb.1:
	ldr	w8, [x20]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.2:
	str	x20, [x19, #16]
	str	x22, [x20, #24]
	add	x0, x20, #20
Lloh3:
	adrp	x8, _rtl8187_beacon_work@GOTPAGE
Lloh4:
	ldr	x8, [x8, _rtl8187_beacon_work@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	str	wzr, [x20, #16]
	ldr	x1, [x19, #8]
Lloh6:
	adrp	x8, _RTL818X_EEPROM_CMD_CONFIG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RTL818X_EEPROM_CMD_CONFIG@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_rtl818x_iowrite8
Lloh9:
	adrp	x21, _ETH_ALEN@GOTPAGE
Lloh10:
	ldr	x21, [x21, _ETH_ALEN@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x22, #0
	mov	x23, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	add	x1, x8, x22
	ldr	x8, [x20, #8]
	ldr	w2, [x8, x22]
	mov	x0, x19
	bl	_rtl818x_iowrite8
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x22, x22, #4
	cmp	x23, x8
	b.lt	LBB0_4
LBB0_5:
	ldr	x1, [x19, #8]
Lloh11:
	adrp	x8, _RTL818X_EEPROM_CMD_NORMAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RTL818X_EEPROM_CMD_NORMAL@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_rtl818x_iowrite8
	mov	w21, #0
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_rtl8187_beacon_work,4,2        ; @rtl8187_beacon_work
	.comm	_RTL818X_EEPROM_CMD_CONFIG,4,2  ; @RTL818X_EEPROM_CMD_CONFIG
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_RTL818X_EEPROM_CMD_NORMAL,4,2  ; @RTL818X_EEPROM_CMD_NORMAL
	.no_dead_strip	_rtl8187_add_interface
.subsections_via_symbols
