	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radio_add_interface
_radio_add_interface:                   ## @radio_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	movq	24(%r14), %rax
	movq	(%rax), %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rbx
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %r12
	testq	%r12, %r12
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r12), %esi
	movq	%r15, %rdi
	callq	_os_strcmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rcx
	callq	_wpa_printf
	jmp	LBB0_12
LBB0_7:
	testq	%r15, %r15
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %edx
	leaq	L_.str.2(%rip), %rcx
	cmovneq	%r15, %rcx
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movl	$12, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r12
	testq	%r15, %r15
	je	LBB0_11
## %bb.10:
	movl	8(%r12), %edi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_os_strlcpy
LBB0_11:
	movq	%r12, %rdi
	callq	_dl_list_init
	movq	%r12, %rdi
	addq	$4, %rdi
	callq	_dl_list_init
LBB0_12:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_dl_list_add
	jmp	LBB0_13
LBB0_8:
	xorl	%r12d, %r12d
LBB0_13:
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Add interface %s to existing radio %s"

L_.str.1:                               ## @.str.1
	.asciz	"Add interface %s to a new radio %s"

L_.str.2:                               ## @.str.2
	.asciz	"N/A"

	.no_dead_strip	_radio_add_interface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radio_add_interface
_radio_add_interface:                   ; @radio_add_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
	mov	x20, x1
	mov	x19, x0
	cbz	x1, LBB0_2
; %bb.1:
	ldr	x8, [x19, #24]
	ldr	x22, [x8]
	cbnz	x22, LBB0_7
LBB0_2:
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w2, [x19, #4]
Lloh3:
	adrp	x8, l_.str.2@PAGE
Lloh4:
	add	x8, x8, l_.str.2@PAGEOFF
	cmp	x20, #0
	csel	x3, x20, x8, ne
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	w0, #12
	bl	_os_zalloc
	mov	x21, x0
	cbz	x0, LBB0_11
; %bb.3:
	cbz	x20, LBB0_5
; %bb.4:
	ldr	w0, [x21, #8]
	mov	x1, x20
	mov	w2, #4
	bl	_os_strlcpy
LBB0_5:
	mov	x0, x21
	bl	_dl_list_init
	add	x0, x21, #4
	bl	_dl_list_init
	b	LBB0_10
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x22, [x22, #8]
	cbz	x22, LBB0_2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x22, #16]
	cbz	x21, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x21, #8]
	mov	x0, x20
	bl	_os_strcmp
	cbnz	x0, LBB0_6
; %bb.9:
Lloh7:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	w2, [x19, #4]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	bl	_wpa_printf
LBB0_10:
	mov	x0, x21
	mov	x1, x19
	bl	_dl_list_add
LBB0_11:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Add interface %s to existing radio %s"

l_.str.1:                               ; @.str.1
	.asciz	"Add interface %s to a new radio %s"

l_.str.2:                               ; @.str.2
	.asciz	"N/A"

	.no_dead_strip	_radio_add_interface
.subsections_via_symbols
