	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostap_remove_interface        ## -- Begin function hostap_remove_interface
	.p2align	4, 0x90
_hostap_remove_interface:               ## @hostap_remove_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	addq	$8, %rdi
	callq	_list_del
LBB0_3:
	movq	(%r15), %rax
	cmpq	%rbx, 16(%rax)
	je	LBB0_4
## %bb.5:
	cmpq	%rbx, 8(%rax)
	je	LBB0_6
## %bb.7:
	cmpq	%rbx, (%rax)
	jne	LBB0_9
	jmp	LBB0_8
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	addq	$16, %rax
	jmp	LBB0_8
LBB0_6:
	addq	$8, %rax
LBB0_8:
	movq	$0, (%rax)
LBB0_9:
	movq	%rbx, %rdi
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_unregister_netdevice           ## TAILCALL
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_unregister_netdev              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostap_remove_interface        ; -- Begin function hostap_remove_interface
	.p2align	2
_hostap_remove_interface:               ; @hostap_remove_interface
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_8
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x22, x0
	cbz	w21, LBB0_3
; %bb.2:
	add	x0, x22, #8
	bl	_list_del
LBB0_3:
	ldr	x9, [x22]
	mov	x8, x9
	ldr	x10, [x8, #16]!
	cmp	x10, x19
	b.eq	LBB0_10
; %bb.4:
	mov	x8, x9
	ldr	x10, [x8, #8]!
	cmp	x10, x19
	b.eq	LBB0_10
; %bb.5:
	ldr	x8, [x9]
	cmp	x8, x19
	b.eq	LBB0_9
; %bb.6:
	mov	x0, x19
	cbz	w20, LBB0_11
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_unregister_netdevice
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x8, x9
LBB0_10:
	str	xzr, [x8]
	mov	x0, x19
	cbnz	w20, LBB0_7
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_unregister_netdev
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
