	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prism2_ioctl_scan_req
_prism2_ioctl_scan_req:                 ## @prism2_ioctl_scan_req
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_IW_MODE_INFRA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_IW_MODE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	movq	8(%rbx), %r15
	movl	$1, %edi
	movl	$3, %esi
	movl	$1, %edx
	callq	_PRISM2_FW_VER
	cmpq	%rax, %r15
	jge	LBB0_5
LBB0_3:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	cmpl	$0, 20(%rbx)
	je	LBB0_6
## %bb.7:
	movl	16(%rbx), %edi
	movl	(%r14), %edx
	movl	4(%r14), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_prism2_request_hostscan        ## TAILCALL
LBB0_6:
	movq	_ENETDOWN@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_IW_MODE_INFRA,8,3              ## @IW_MODE_INFRA
	.comm	_IW_MODE_ADHOC,8,3              ## @IW_MODE_ADHOC
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ENETDOWN,4,2                   ## @ENETDOWN
	.no_dead_strip	_prism2_ioctl_scan_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prism2_ioctl_scan_req
_prism2_ioctl_scan_req:                 ; @prism2_ioctl_scan_req
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _IW_MODE_INFRA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IW_MODE_INFRA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _IW_MODE_ADHOC@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IW_MODE_ADHOC@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
	mov	w0, #1
	mov	w1, #3
	mov	w2, #1
	bl	_PRISM2_FW_VER
	cmp	x21, x0
	b.ge	LBB0_4
LBB0_2:
Lloh6:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
	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_4:
	ldr	w8, [x20, #20]
	cbz	w8, LBB0_6
; %bb.5:
	ldr	w0, [x20, #16]
	ldp	w2, w1, [x19]
	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	_prism2_request_hostscan
LBB0_6:
Lloh8:
	adrp	x8, _ENETDOWN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENETDOWN@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IW_MODE_INFRA,8,3              ; @IW_MODE_INFRA
	.comm	_IW_MODE_ADHOC,8,3              ; @IW_MODE_ADHOC
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ENETDOWN,4,2                   ; @ENETDOWN
	.no_dead_strip	_prism2_ioctl_scan_req
.subsections_via_symbols
