	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_supplicant_signal_poll
_wpa_supplicant_signal_poll:            ## @wpa_supplicant_signal_poll
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r14
	leaq	-112(%rbp), %rsi
	callq	_wpa_drv_signal_poll
	movl	$-1, %r15d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.1:
	movslq	-56(%rbp), %rcx
	movslq	-112(%rbp), %rax
	imulq	$274877907, %rax, %r8           ## imm = 0x10624DD3
	movq	%r8, %rax
	shrq	$63, %rax
	sarq	$38, %r8
	addl	%eax, %r8d
	movl	-64(%rbp), %eax
	movl	-60(%rbp), %r9d
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%r13d, %esi
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	callq	_os_snprintf
	movl	%eax, %ebx
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	je	LBB0_2
LBB0_18:
	movl	%r15d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	addq	%r14, %r13
	movslq	%ebx, %rsi
	addq	%r14, %rsi
	movq	-104(%rbp), %rdi
	movq	_CHAN_WIDTH_UNKNOWN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_5
## %bb.3:
	movl	%r13d, %r12d
	subl	%esi, %r12d
	movq	%rsi, %rbx
	callq	_channel_width_to_string
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_os_snprintf
	movl	%eax, %ebx
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	jne	LBB0_18
## %bb.4:
	movslq	%ebx, %rax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addq	%rax, %rsi
LBB0_5:
	movq	-96(%rbp), %rcx
	testq	%rcx, %rcx
	jle	LBB0_8
## %bb.6:
	movl	%r13d, %ebx
	subl	%esi, %ebx
	leaq	L_.str.2(%rip), %rdx
	movq	%rsi, %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_os_snprintf
	movl	%eax, %r12d
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	jne	LBB0_18
## %bb.7:
	movslq	%r12d, %rax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addq	%rax, %rsi
LBB0_8:
	movq	-88(%rbp), %rcx
	testq	%rcx, %rcx
	jle	LBB0_11
## %bb.9:
	movl	%r13d, %ebx
	subl	%esi, %ebx
	leaq	L_.str.3(%rip), %rdx
	movq	%rsi, %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_os_snprintf
	movl	%eax, %r12d
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	jne	LBB0_18
## %bb.10:
	movslq	%r12d, %rax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addq	%rax, %rsi
LBB0_11:
	movq	-80(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.12:
	movl	%r13d, %ebx
	subl	%esi, %ebx
	leaq	L_.str.4(%rip), %rdx
	movq	%rsi, %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_os_snprintf
	movl	%eax, %r12d
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	jne	LBB0_18
## %bb.13:
	movslq	%r12d, %rax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addq	%rax, %rsi
LBB0_14:
	movq	-72(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.15:
	subl	%esi, %r13d
	leaq	L_.str.5(%rip), %rdx
	movq	%rsi, %rdi
	movq	%rsi, %r12
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_os_snprintf
	movl	%eax, %ebx
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	jne	LBB0_18
## %bb.16:
	movslq	%ebx, %rax
	addq	%rax, %r12
	movq	%r12, %rsi
LBB0_17:
	subl	%r14d, %esi
	movl	%esi, %r15d
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RSSI=%d\nLINKSPEED=%d\nNOISE=%d\nFREQUENCY=%u\n"

	.comm	_CHAN_WIDTH_UNKNOWN,8,3         ## @CHAN_WIDTH_UNKNOWN
L_.str.1:                               ## @.str.1
	.asciz	"WIDTH=%s\n"

L_.str.2:                               ## @.str.2
	.asciz	"CENTER_FRQ1=%d\n"

L_.str.3:                               ## @.str.3
	.asciz	"CENTER_FRQ2=%d\n"

L_.str.4:                               ## @.str.4
	.asciz	"AVG_RSSI=%d\n"

L_.str.5:                               ## @.str.5
	.asciz	"AVG_BEACON_RSSI=%d\n"

	.no_dead_strip	_wpa_supplicant_signal_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_supplicant_signal_poll
_wpa_supplicant_signal_poll:            ; @wpa_supplicant_signal_poll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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, x2
	mov	x19, x1
	add	x1, sp, #32
	bl	_wpa_drv_signal_poll
	cbnz	w0, LBB0_2
; %bb.1:
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	ldrsw	x9, [sp, #32]
	mul	x8, x9, x8
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	ldrsw	x3, [sp, #88]
	ldp	w10, w9, [sp, #80]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_os_snprintf
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_os_snprintf_error
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_4:
	add	x23, x19, x20
	add	x20, x19, w21, sxtw
	ldr	x0, [sp, #40]
Lloh2:
	adrp	x8, _CHAN_WIDTH_UNKNOWN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CHAN_WIDTH_UNKNOWN@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.5:
	sub	w22, w23, w20
	bl	_channel_width_to_string
	mov	x3, x0
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	bl	_os_snprintf
	mov	x21, x0
	mov	x0, x22
	mov	x1, x21
	bl	_os_snprintf_error
	cbnz	x0, LBB0_2
; %bb.6:
	add	x20, x20, w21, sxtw
LBB0_7:
	ldr	x3, [sp, #48]
	cmp	x3, #1
	b.lt	LBB0_10
; %bb.8:
	sub	w22, w23, w20
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	bl	_os_snprintf
	mov	x21, x0
	mov	x0, x22
	mov	x1, x21
	bl	_os_snprintf_error
	cbnz	x0, LBB0_2
; %bb.9:
	add	x20, x20, w21, sxtw
LBB0_10:
	ldr	x3, [sp, #56]
	cmp	x3, #1
	b.lt	LBB0_13
; %bb.11:
	sub	w22, w23, w20
Lloh9:
	adrp	x2, l_.str.3@PAGE
Lloh10:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	bl	_os_snprintf
	mov	x21, x0
	mov	x0, x22
	mov	x1, x21
	bl	_os_snprintf_error
	cbnz	x0, LBB0_2
; %bb.12:
	add	x20, x20, w21, sxtw
LBB0_13:
	ldr	x3, [sp, #64]
	cbz	x3, LBB0_16
; %bb.14:
	sub	w22, w23, w20
Lloh11:
	adrp	x2, l_.str.4@PAGE
Lloh12:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	bl	_os_snprintf
	mov	x21, x0
	mov	x0, x22
	mov	x1, x21
	bl	_os_snprintf_error
	cbnz	x0, LBB0_2
; %bb.15:
	add	x20, x20, w21, sxtw
LBB0_16:
	ldr	x3, [sp, #72]
	cbz	x3, LBB0_19
; %bb.17:
	sub	w22, w23, w20
Lloh13:
	adrp	x2, l_.str.5@PAGE
Lloh14:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	bl	_os_snprintf
	mov	x21, x0
	mov	x0, x22
	mov	x1, x21
	bl	_os_snprintf_error
	cbnz	x0, LBB0_2
; %bb.18:
	add	x20, x20, w21, sxtw
LBB0_19:
	sub	w0, w20, w19
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RSSI=%d\nLINKSPEED=%d\nNOISE=%d\nFREQUENCY=%u\n"

	.comm	_CHAN_WIDTH_UNKNOWN,8,3         ; @CHAN_WIDTH_UNKNOWN
l_.str.1:                               ; @.str.1
	.asciz	"WIDTH=%s\n"

l_.str.2:                               ; @.str.2
	.asciz	"CENTER_FRQ1=%d\n"

l_.str.3:                               ; @.str.3
	.asciz	"CENTER_FRQ2=%d\n"

l_.str.4:                               ; @.str.4
	.asciz	"AVG_RSSI=%d\n"

l_.str.5:                               ; @.str.5
	.asciz	"AVG_BEACON_RSSI=%d\n"

	.no_dead_strip	_wpa_supplicant_signal_poll
.subsections_via_symbols
