	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hs20_send_wnm_notification_t_c ## -- Begin function hs20_send_wnm_notification_t_c
	.p2align	4, 0x90
_hs20_send_wnm_notification_t_c:        ## @hs20_send_wnm_notification_t_c
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.1:
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rdx, %rdi
	callq	_os_strlen
	leaq	5(%rax), %r14
	cmpq	$256, %r14                      ## imm = 0x100
	jb	LBB0_4
## %bb.2:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_6
LBB0_3:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_6
LBB0_4:
	movq	%rax, %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leal	11(%rax), %edi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %rbx
	movq	_WLAN_ACTION_WNM@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_wpabuf_put_u8
	movq	_WNM_NOTIFICATION_REQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_wpabuf_put_u8
	movl	$1, %esi
	movq	%rbx, %rdi
	callq	_wpabuf_put_u8
	movl	$1, %esi
	movq	%rbx, %rdi
	callq	_wpabuf_put_u8
	movq	_WLAN_EID_VENDOR_SPECIFIC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_wpabuf_put_u8
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_wpabuf_put_u8
	movq	_OUI_WFA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wpabuf_put_be24
	movq	_HS20_WNM_T_C_ACCEPTANCE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_wpabuf_put_u8
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_wpabuf_put_u8
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_wpabuf_put_str
	movq	(%r15), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_wpabuf_head
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_wpabuf_len
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%r12d, %r8d
	movl	%eax, %r9d
	callq	_hostapd_drv_send_action
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_wpabuf_free
	movl	%r14d, %eax
	jmp	LBB0_7
LBB0_6:
	movl	$-1, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HS 2.0: No T&C Server URL available"

L_.str.1:                               ## @.str.1
	.asciz	"HS 2.0: Too long T&C Server URL for WNM-Notification: '%s'"

	.comm	_WLAN_ACTION_WNM,8,3            ## @WLAN_ACTION_WNM
	.comm	_WNM_NOTIFICATION_REQ,8,3       ## @WNM_NOTIFICATION_REQ
	.comm	_WLAN_EID_VENDOR_SPECIFIC,8,3   ## @WLAN_EID_VENDOR_SPECIFIC
	.comm	_OUI_WFA,4,2                    ## @OUI_WFA
	.comm	_HS20_WNM_T_C_ACCEPTANCE,8,3    ## @HS20_WNM_T_C_ACCEPTANCE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hs20_send_wnm_notification_t_c ; -- Begin function hs20_send_wnm_notification_t_c
	.p2align	2
_hs20_send_wnm_notification_t_c:        ; @hs20_send_wnm_notification_t_c
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	cbz	x2, LBB0_3
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x2
	bl	_os_strlen
	add	x24, x0, #5
	cmp	x24, #256
	b.lo	LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	str	x21, [sp]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	bl	_wpa_printf
LBB0_5:
	mov	w0, #-1
	b	LBB0_8
LBB0_6:
	mov	x23, x0
	add	w0, w23, #11
	bl	_wpabuf_alloc
	cbz	x0, LBB0_5
; %bb.7:
	mov	x22, x0
Lloh10:
	adrp	x8, _WLAN_ACTION_WNM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WLAN_ACTION_WNM@GOTPAGEOFF]
Lloh12:
	ldr	x1, [x8]
	bl	_wpabuf_put_u8
Lloh13:
	adrp	x8, _WNM_NOTIFICATION_REQ@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WNM_NOTIFICATION_REQ@GOTPAGEOFF]
Lloh15:
	ldr	x1, [x8]
	mov	x0, x22
	bl	_wpabuf_put_u8
	mov	x0, x22
	mov	w1, #1
	bl	_wpabuf_put_u8
	mov	x0, x22
	mov	w1, #1
	bl	_wpabuf_put_u8
Lloh16:
	adrp	x8, _WLAN_EID_VENDOR_SPECIFIC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WLAN_EID_VENDOR_SPECIFIC@GOTPAGEOFF]
Lloh18:
	ldr	x1, [x8]
	mov	x0, x22
	bl	_wpabuf_put_u8
	mov	x0, x22
	mov	x1, x24
	bl	_wpabuf_put_u8
Lloh19:
	adrp	x8, _OUI_WFA@GOTPAGE
Lloh20:
	ldr	x8, [x8, _OUI_WFA@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_wpabuf_put_be24
Lloh22:
	adrp	x8, _HS20_WNM_T_C_ACCEPTANCE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _HS20_WNM_T_C_ACCEPTANCE@GOTPAGEOFF]
Lloh24:
	ldr	x1, [x8]
	mov	x0, x22
	bl	_wpabuf_put_u8
	mov	x0, x22
	mov	x1, x23
	bl	_wpabuf_put_u8
	mov	x0, x22
	mov	x1, x21
	bl	_wpabuf_put_str
	ldr	x8, [x20]
	ldr	w21, [x8]
	mov	x0, x22
	bl	_wpabuf_head
	mov	x23, x0
	mov	x0, x22
	bl	_wpabuf_len
	mov	x5, x0
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	mov	x3, x19
	mov	x4, x23
	bl	_hostapd_drv_send_action
	mov	x19, x0
	mov	x0, x22
	bl	_wpabuf_free
	mov	x0, x19
LBB0_8:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HS 2.0: No T&C Server URL available"

l_.str.1:                               ; @.str.1
	.asciz	"HS 2.0: Too long T&C Server URL for WNM-Notification: '%s'"

	.comm	_WLAN_ACTION_WNM,8,3            ; @WLAN_ACTION_WNM
	.comm	_WNM_NOTIFICATION_REQ,8,3       ; @WNM_NOTIFICATION_REQ
	.comm	_WLAN_EID_VENDOR_SPECIFIC,8,3   ; @WLAN_EID_VENDOR_SPECIFIC
	.comm	_OUI_WFA,4,2                    ; @OUI_WFA
	.comm	_HS20_WNM_T_C_ACCEPTANCE,8,3    ; @HS20_WNM_T_C_ACCEPTANCE
.subsections_via_symbols
