	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_php_set_inet_addr              ## -- Begin function php_set_inet_addr
	.p2align	4, 0x90
_php_set_inet_addr:                     ## @php_set_inet_addr
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_inet_aton
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	-32(%rbp), %eax
	movl	%eax, (%r15)
LBB0_8:
	movl	$1, %ebx
	jmp	LBB0_9
LBB0_2:
	movq	%rbx, %rdi
	callq	_strlen
	movq	_MAXFQDNLEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_php_network_gethostbyname
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	(%rax), %rcx
	movq	_AF_INET@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.7:
	movq	16(%rax), %rcx
	movl	(%rcx), %esi
	movl	8(%rax), %edx
	movq	%r15, %rdi
	callq	_memcpy
	jmp	LBB0_8
LBB0_4:
	movq	_h_errno@GOTPCREL(%rip), %rax
	movq	$-10000, %rdx                   ## imm = 0xD8F0
	subq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_PHP_SOCKET_ERROR
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_php_error_docref
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXFQDNLEN,8,3                 ## @MAXFQDNLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Host lookup failed"

	.comm	_h_errno,8,3                    ## @h_errno
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_E_WARNING,4,2                  ## @E_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"Host lookup failed: Non AF_INET domain returned on AF_INET socket"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_php_set_inet_addr              ; -- Begin function php_set_inet_addr
	.p2align	2
_php_set_inet_addr:                     ; @php_set_inet_addr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x21, x1
	mov	x19, x0
	add	x1, sp, #8
	mov	x0, x21
	bl	_inet_aton
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [sp, #8]
	str	w8, [x19]
LBB0_2:
	mov	w0, #1
	b	LBB0_9
LBB0_3:
	mov	x0, x21
	bl	_strlen
Lloh0:
	adrp	x8, _MAXFQDNLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAXFQDNLEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.gt	LBB0_7
; %bb.4:
	mov	x0, x21
	bl	_php_network_gethostbyname
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _AF_INET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.6:
	ldr	x8, [x0, #16]
	ldr	w1, [x8]
	ldr	w2, [x0, #8]
	mov	x0, x19
	bl	_memcpy
	b	LBB0_2
LBB0_7:
Lloh6:
	adrp	x8, _h_errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _h_errno@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	mov	x9, #-10000
	sub	x2, x9, x8
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_PHP_SOCKET_ERROR
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_10:
Lloh11:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, #0
	bl	_php_error_docref
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXFQDNLEN,8,3                 ; @MAXFQDNLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Host lookup failed"

	.comm	_h_errno,8,3                    ; @h_errno
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_E_WARNING,4,2                  ; @E_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"Host lookup failed: Non AF_INET domain returned on AF_INET socket"

.subsections_via_symbols
