	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_er_http_req
_wps_er_http_req:                       ## @wps_er_http_req
	.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	%rsi, %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_http_request_get_cli_addr
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_http_request_get_type
	movl	%eax, %r12d
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_http_request_get_uri
	movl	%eax, %r14d
	movl	4(%rbx), %edi
	callq	_inet_ntoa
	movl	%eax, %r13d
	movl	(%rbx), %edi
	callq	_ntohs
	leaq	L_.str(%rip), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %edx
	movl	%r12d, %ecx
	movl	%r13d, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_wpa_printf
	cmpl	$128, %r12d
	jne	LBB0_1
## %bb.3:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wps_er_http_notify             ## TAILCALL
LBB0_1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$200, %edi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdi
	callq	_wpabuf_put_str
	movq	%rbx, %rdi
	callq	_http_put_date
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_wpabuf_put_str
	movq	%r15, %rdi
	movq	%rbx, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_http_request_send_and_deinit   ## TAILCALL
LBB0_4:
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_http_request_deinit            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS ER: HTTP request: '%s' (type %d) from %s:%d"

L_.str.1:                               ## @.str.1
	.asciz	"WPS ER: Unsupported HTTP request type %d"

L_.str.2:                               ## @.str.2
	.asciz	"HTTP/1.1 501 Unimplemented\r\nConnection: close\r\n"

L_.str.3:                               ## @.str.3
	.asciz	"\r\n"

	.no_dead_strip	_wps_er_http_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wps_er_http_req
_wps_er_http_req:                       ; @wps_er_http_req
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_http_request_get_cli_addr
	mov	x22, x0
	mov	x0, x19
	bl	_http_request_get_type
	mov	x21, x0
Lloh0:
	adrp	x26, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x26, [x26, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w23, [x26]
	mov	x0, x19
	bl	_http_request_get_uri
	mov	x24, x0
	ldr	w0, [x22, #4]
	bl	_inet_ntoa
	mov	x25, x0
	ldr	w0, [x22]
	bl	_ntohs
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x25, x0, [sp, #8]
	str	x21, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x24
	bl	_wpa_printf
	cmp	w21, #128
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_wps_er_http_notify
LBB0_2:
	ldr	w0, [x26]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_wpa_printf
	mov	w0, #200
	bl	_wpabuf_alloc
	cbz	x0, LBB0_4
; %bb.3:
	mov	x20, x0
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpabuf_put_str
	mov	x0, x20
	bl	_http_put_date
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_wpabuf_put_str
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_http_request_send_and_deinit
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_http_request_deinit
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS ER: HTTP request: '%s' (type %d) from %s:%d"

l_.str.1:                               ; @.str.1
	.asciz	"WPS ER: Unsupported HTTP request type %d"

l_.str.2:                               ; @.str.2
	.asciz	"HTTP/1.1 501 Unimplemented\r\nConnection: close\r\n"

l_.str.3:                               ; @.str.3
	.asciz	"\r\n"

	.no_dead_strip	_wps_er_http_req
.subsections_via_symbols
