	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_add_beacon_rep
_wpas_add_beacon_rep:                   ## @wpas_add_beacon_rep
	.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
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	leaq	40(%rdx), %r12
	movq	%r12, -72(%rbp)
	movq	(%rdx), %r13
	testq	%r13, %r13
	jne	LBB0_2
## %bb.1:
	movq	8(%r15), %r13
LBB0_2:
	movq	%r13, -56(%rbp)
	movl	24(%rbx), %edi
	movq	_broadcast_ether_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	callq	_os_memcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	24(%rbx), %edi
	movl	24(%r15), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	callq	_os_memcmp
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_14
LBB0_4:
	movq	(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.5:
	xorl	%r14d, %r14d
	cmpq	16(%r15), %rdx
	jne	LBB0_14
## %bb.6:
	movl	20(%rbx), %edi
	movl	36(%r15), %esi
	callq	_os_memcmp
	testq	%rax, %rax
	jne	LBB0_14
LBB0_7:
	movl	32(%r15), %edi
	leaq	-80(%rbp), %rcx
	leaq	-84(%rbp), %r8
	leaq	-88(%rbp), %r9
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_wpas_get_op_chan_phy
	testq	%rax, %rax
	js	LBB0_8
## %bb.9:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_host_to_le64
	movl	%eax, -92(%rbp)
	movl	16(%rbx), %edi
	callq	_host_to_le16
	movl	%eax, -96(%rbp)
	movl	28(%r15), %edi
	callq	_rssi_to_rcpi
	movl	%eax, -100(%rbp)
	movl	$255, -120(%rbp)
	movl	-104(%rbp), %edi
	movl	24(%r15), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	callq	_os_memcpy
	movq	$0, -112(%rbp)
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_host_to_le32
	movl	%eax, -116(%rbp)
	xorl	%r13d, %r13d
	leaq	-56(%rbp), %r12
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	%r13d, (%rsp)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	-120(%rbp), %rcx
	leaq	-72(%rbp), %r8
	movq	%r12, %r9
	callq	_wpas_add_beacon_rep_elem
	testl	%eax, %eax
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%rbx), %rax
	xorl	%r14d, %r14d
	movq	_BEACON_REPORT_DETAIL_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	incl	%r13d
	cmpq	$1, -56(%rbp)
	ja	LBB0_10
	jmp	LBB0_14
LBB0_8:
	xorl	%r14d, %r14d
	jmp	LBB0_14
LBB0_11:
	movl	%eax, %r14d
LBB0_14:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_broadcast_ether_addr,4,2       ## @broadcast_ether_addr
	.comm	_ETH_ALEN,8,3                   ## @ETH_ALEN
	.comm	_BEACON_REPORT_DETAIL_NONE,8,3  ## @BEACON_REPORT_DETAIL_NONE
	.no_dead_strip	_wpas_add_beacon_rep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_add_beacon_rep
_wpas_add_beacon_rep:                   ; @wpas_add_beacon_rep
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x4
	mov	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x24, x2, #40
	str	x24, [sp, #56]
	ldr	x25, [x2]
	cbnz	x25, LBB0_2
; %bb.1:
	ldr	x25, [x19, #8]
LBB0_2:
	str	x25, [sp, #48]
	ldr	w0, [x21, #24]
Lloh0:
	adrp	x8, _broadcast_ether_addr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _broadcast_ether_addr@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x26, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x26, [x26, _ETH_ALEN@GOTPAGEOFF]
	ldr	x2, [x26]
	bl	_os_memcmp
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x21, #24]
	ldr	w1, [x19, #24]
	ldr	x2, [x26]
	bl	_os_memcmp
	cbnz	x0, LBB0_11
LBB0_4:
	ldr	x2, [x21]
	cbz	x2, LBB0_7
; %bb.5:
	ldr	x8, [x19, #16]
	cmp	x2, x8
	b.ne	LBB0_11
; %bb.6:
	ldr	w0, [x21, #20]
	ldr	w1, [x19, #36]
	bl	_os_memcmp
	cbnz	x0, LBB0_11
LBB0_7:
	ldr	w0, [x19, #32]
	mov	x8, sp
	add	x3, x8, #40
	add	x4, x8, #36
	add	x5, x8, #32
	mov	x1, x24
	mov	x2, x25
	bl	_wpas_get_op_chan_phy
	tbnz	x0, #63, LBB0_11
; %bb.8:
	mov	x0, x23
	bl	_host_to_le64
	str	w0, [sp, #28]
	ldr	w0, [x21, #16]
	bl	_host_to_le16
	str	w0, [sp, #24]
	ldr	w0, [x19, #28]
	bl	_rssi_to_rcpi
	mov	w8, #255
	str	w0, [sp, #20]
	str	w8, [sp]
	ldr	w0, [sp, #16]
	ldr	w1, [x19, #24]
	ldr	x2, [x26]
	bl	_os_memcpy
	str	xzr, [sp, #8]
	mov	x0, x22
	bl	_host_to_le32
	mov	w22, #0
	str	w0, [sp, #4]
Lloh5:
	adrp	x23, _BEACON_REPORT_DETAIL_NONE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _BEACON_REPORT_DETAIL_NONE@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x3, sp
	add	x4, sp, #56
	add	x5, sp, #48
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	mov	x6, x22
	bl	_wpas_add_beacon_rep_elem
	cbnz	w0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x21, #8]
	ldr	x9, [x23]
	ldr	x10, [sp, #48]
	add	w22, w22, #1
	cmp	x8, x9
	ccmp	x10, #1, #0, ne
	b.hi	LBB0_9
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_broadcast_ether_addr,4,2       ; @broadcast_ether_addr
	.comm	_ETH_ALEN,8,3                   ; @ETH_ALEN
	.comm	_BEACON_REPORT_DETAIL_NONE,8,3  ; @BEACON_REPORT_DETAIL_NONE
	.no_dead_strip	_wpas_add_beacon_rep
.subsections_via_symbols
