	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ap_auth_make_challenge
_ap_auth_make_challenge:                ## @ap_auth_make_challenge
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_ap_crypt_init
	cmpq	$0, (%rbx)
	je	LBB0_8
LBB0_2:
	movq	_WLAN_AUTH_CHALLENGE_LEN@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	addq	(%r12), %rdi
	addq	16(%rax), %rdi
	callq	_dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_skb_reserve
	movq	(%r12), %rsi
	movq	%r15, %rdi
	callq	_skb_put_zero
	movq	(%rbx), %rax
	movl	8(%rbx), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	*8(%rax)
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%r15, %rdi
	callq	_dev_kfree_skb
LBB0_6:
	movq	%r14, %rdi
	callq	_kfree
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_7:
	movq	_DEBUG_AP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_PDEBUG
LBB0_8:
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_9:
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movq	(%r12), %rcx
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_skb_copy_from_linear_data_offset
	movq	%r15, %rdi
	callq	_dev_kfree_skb
LBB0_10:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_AUTH_CHALLENGE_LEN,8,3    ## @WLAN_AUTH_CHALLENGE_LEN
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_DEBUG_AP,4,2                   ## @DEBUG_AP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AP: kmalloc failed for challenge\n"

	.no_dead_strip	_ap_auth_make_challenge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ap_auth_make_challenge
_ap_auth_make_challenge:                ; @ap_auth_make_challenge
	.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
	mov	x20, x0
	ldr	x8, [x0]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_ap_crypt_init
	ldr	x8, [x20]
	cbz	x8, LBB0_8
LBB0_2:
Lloh0:
	adrp	x22, _WLAN_AUTH_CHALLENGE_LEN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _WLAN_AUTH_CHALLENGE_LEN@GOTPAGEOFF]
	ldr	x0, [x22]
Lloh2:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kmalloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x8, [x22]
	ldr	x9, [x20]
	ldr	x10, [x9]
	ldr	x9, [x9, #16]
	add	x8, x10, x8
	add	x0, x8, x9
	bl	_dev_alloc_skb
	cbz	x0, LBB0_6
; %bb.4:
	mov	x21, x0
	ldr	x8, [x20]
	ldr	x1, [x8]
	bl	_skb_reserve
	ldr	x1, [x22]
	mov	x0, x21
	bl	_skb_put_zero
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	w2, [x20, #8]
	mov	x0, x21
	mov	w1, #0
	blr	x8
	cbz	x0, LBB0_9
; %bb.5:
	mov	x0, x21
	bl	_dev_kfree_skb
LBB0_6:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
	b	LBB0_10
LBB0_7:
Lloh5:
	adrp	x8, _DEBUG_AP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DEBUG_AP@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PDEBUG
	b	LBB0_10
LBB0_8:
	mov	x19, #0
	b	LBB0_10
LBB0_9:
	ldr	x8, [x20]
	ldr	x1, [x8]
	ldr	x3, [x22]
	mov	x0, x21
	mov	x2, x19
	bl	_skb_copy_from_linear_data_offset
	mov	x0, x21
	bl	_dev_kfree_skb
LBB0_10:
	mov	x0, 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
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_AUTH_CHALLENGE_LEN,8,3    ; @WLAN_AUTH_CHALLENGE_LEN
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_DEBUG_AP,4,2                   ; @DEBUG_AP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AP: kmalloc failed for challenge\n"

	.no_dead_strip	_ap_auth_make_challenge
.subsections_via_symbols
