	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hostap_hw_ready
_hostap_hw_ready:                       ## @hostap_hw_ready
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_netdev_priv
	movq	(%rax), %rbx
	movq	_HOSTAP_INTERFACE_MAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_dev_template@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_hostap_add_interface
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rax
	movq	_IW_MODE_INFRA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_IW_MODE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_4:
	movq	24(%rbx), %rdi
	callq	_netif_carrier_off
	movq	16(%rbx), %rdi
	callq	_netif_carrier_off
LBB0_5:
	movq	%rbx, %rdi
	callq	_hostap_init_proc
	movl	8(%rbx), %edx
	movq	_prism2_registers_proc_show@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movq	%rbx, %r8
	callq	_proc_create_single_data
	movq	%rbx, %rdi
	callq	_hostap_init_ap_proc
	jmp	LBB0_6
LBB0_1:
	movl	$-1, %r14d
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HOSTAP_INTERFACE_MAIN,4,2      ## @HOSTAP_INTERFACE_MAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_dev_template,4,2               ## @dev_template
	.comm	_IW_MODE_INFRA,8,3              ## @IW_MODE_INFRA
	.comm	_IW_MODE_ADHOC,8,3              ## @IW_MODE_ADHOC
L_.str.1:                               ## @.str.1
	.asciz	"registers"

	.comm	_prism2_registers_proc_show,4,2 ## @prism2_registers_proc_show
	.no_dead_strip	_hostap_hw_ready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hostap_hw_ready
_hostap_hw_ready:                       ; @hostap_hw_ready
	.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
	bl	_netdev_priv
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _HOSTAP_INTERFACE_MAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HOSTAP_INTERFACE_MAIN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _dev_template@GOTPAGE
Lloh4:
	ldr	x8, [x8, _dev_template@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	bl	_hostap_add_interface
	str	x0, [x19, #16]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _IW_MODE_INFRA@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IW_MODE_INFRA@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _IW_MODE_ADHOC@GOTPAGE
Lloh12:
	ldr	x10, [x10, _IW_MODE_ADHOC@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_3
; %bb.2:
	ldr	x0, [x19, #24]
	bl	_netif_carrier_off
	ldr	x0, [x19, #16]
	bl	_netif_carrier_off
LBB0_3:
	mov	x0, x19
	bl	_hostap_init_proc
	ldr	w2, [x19, #8]
Lloh14:
	adrp	x8, _prism2_registers_proc_show@GOTPAGE
Lloh15:
	ldr	x8, [x8, _prism2_registers_proc_show@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #0
	mov	x4, x19
	bl	_proc_create_single_data
	mov	x0, x19
	bl	_hostap_init_ap_proc
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_HOSTAP_INTERFACE_MAIN,4,2      ; @HOSTAP_INTERFACE_MAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_dev_template,4,2               ; @dev_template
	.comm	_IW_MODE_INFRA,8,3              ; @IW_MODE_INFRA
	.comm	_IW_MODE_ADHOC,8,3              ; @IW_MODE_ADHOC
l_.str.1:                               ; @.str.1
	.asciz	"registers"

	.comm	_prism2_registers_proc_show,4,2 ; @prism2_registers_proc_show
	.no_dead_strip	_hostap_hw_ready
.subsections_via_symbols
