	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_set_assoc_req_ies
_ath6kl_set_assoc_req_ies:              ## @ath6kl_set_assoc_req_ies
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movq	_CONNECT_WPS_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 4(%r14)
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$0, %r12d
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.1:
	movq	%rdx, %r13
	testq	%rdx, %rdx
	je	LBB0_16
## %bb.2:
	movq	%rsi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %r12
	cmpq	$2, %r13
	jl	LBB0_4
## %bb.7:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%r13,4), %r13
	leaq	4(%rbx), %r15
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	movslq	(%r15), %rax
	leaq	(%rbx,%rax,4), %r15
	addq	$12, %r15
	leaq	(%rbx,%rax,4), %rbx
	addq	$8, %rbx
	cmpq	%r13, %r15
	jae	LBB0_15
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movslq	4(%rbx), %rax
	leaq	(%rbx,%rax,4), %rax
	addq	$8, %rax
	cmpq	%r13, %rax
	ja	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rdi
	callq	_ath6kl_is_wpa_ie
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rdi
	callq	_ath6kl_is_rsn_ie
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12,4), %rdi
	movl	(%r15), %edx
	addl	$2, %edx
	movq	%rbx, %rsi
	callq	_memcpy
	movslq	(%r15), %rax
	addq	%rax, %r12
	addq	$2, %r12
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rdi
	callq	_ath6kl_is_wps_ie
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_CONNECT_WPS_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r14)
	jmp	LBB0_14
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_15:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_4:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_16:
	movl	(%r14), %edi
	movl	(%r15), %esi
	movq	_WMI_FRAME_ASSOC_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rcx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	_ath6kl_wmi_set_appie_cmd
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_kfree
	movl	%ebx, %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONNECT_WPS_FLAG,4,2           ## @CONNECT_WPS_FLAG
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WMI_FRAME_ASSOC_REQ,4,2        ## @WMI_FRAME_ASSOC_REQ
	.no_dead_strip	_ath6kl_set_assoc_req_ies
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_set_assoc_req_ies
_ath6kl_set_assoc_req_ies:              ; @ath6kl_set_assoc_req_ies
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
	mov	x19, #0
	ldr	x24, [x0, #8]
Lloh0:
	adrp	x25, _CONNECT_WPS_FLAG@GOTPAGE
Lloh1:
	ldr	x25, [x25, _CONNECT_WPS_FLAG@GOTPAGEOFF]
	ldr	w8, [x25]
	ldr	w9, [x24, #4]
	bic	w8, w9, w8
	str	w8, [x24, #4]
	cbz	x1, LBB0_12
; %bb.1:
	mov	x23, x2
	mov	x22, x19
	cbz	x2, LBB0_15
; %bb.2:
	mov	x21, x1
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_kmalloc
	cbz	x0, LBB0_13
; %bb.3:
	mov	x19, x0
	cmp	x23, #2
	b.lt	LBB0_14
; %bb.4:
	mov	x22, #0
	add	x23, x21, x23, lsl #2
	add	x26, x21, #4
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x8, [x21, #4]
	add	x8, x21, x8, lsl #2
	add	x21, x8, #8
	add	x26, x8, #12
	cmp	x26, x23
	b.hs	LBB0_15
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x21, #4]
	add	x8, x21, x8, lsl #2
	add	x8, x8, #8
	cmp	x8, x23
	b.hi	LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_ath6kl_is_wpa_ie
	cbnz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_ath6kl_is_rsn_ie
	cbnz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, x19, x22, lsl #2
	ldr	w8, [x26]
	add	w2, w8, #2
	mov	x1, x21
	bl	_memcpy
	ldrsw	x8, [x26]
	add	x8, x8, x22
	add	x22, x8, #2
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_ath6kl_is_wps_ie
	cbz	x0, LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x25]
	ldr	w9, [x24, #4]
	orr	w8, w9, w8
	str	w8, [x24, #4]
	b	LBB0_5
LBB0_12:
	mov	x22, x19
	b	LBB0_15
LBB0_13:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_14:
	mov	x22, #0
LBB0_15:
	ldr	w0, [x24]
	ldr	w1, [x20]
Lloh8:
	adrp	x8, _WMI_FRAME_ASSOC_REQ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WMI_FRAME_ASSOC_REQ@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x3, x19
	mov	x4, x22
	bl	_ath6kl_wmi_set_appie_cmd
	mov	x20, x0
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
LBB0_16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CONNECT_WPS_FLAG,4,2           ; @CONNECT_WPS_FLAG
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WMI_FRAME_ASSOC_REQ,4,2        ; @WMI_FRAME_ASSOC_REQ
	.no_dead_strip	_ath6kl_set_assoc_req_ies
.subsections_via_symbols
