	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ifconfig_socket                ## -- Begin function ifconfig_socket
	.p2align	4, 0x90
_ifconfig_socket:                       ## @ifconfig_socket
	.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
	movq	_AF_MAX@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jge	LBB0_3
## %bb.1:
	movq	_SOCKET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	$-1, %r15d
	jmp	LBB0_8
LBB0_3:
	movq	%rdx, %r14
	movq	(%rbx), %rax
	movslq	%esi, %r12
	movl	(%rax,%r12,4), %eax
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, (%r14)
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_5:
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movl	%r12d, %edi
	xorl	%edx, %edx
	callq	_socket
	movq	(%rbx), %rcx
	movl	%eax, (%rcx,%r12,4)
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, (%r14)
LBB0_8:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_SOCKET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	_errno@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_MAX,4,2                     ## @AF_MAX
	.comm	_SOCKET,8,3                     ## @SOCKET
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ifconfig_socket                ; -- Begin function ifconfig_socket
	.p2align	2
_ifconfig_socket:                       ; @ifconfig_socket
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
Lloh0:
	adrp	x8, _AF_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _SOCKET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOCKET@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	w0, #-1
	b	LBB0_6
LBB0_2:
	mov	x20, x2
	ldr	x8, [x19]
	ldr	w8, [x8, w1, sxtw #2]
	cmn	w8, #1
	b.ne	LBB0_5
; %bb.3:
	sxtw	x21, w1
Lloh9:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mov	x0, x1
	mov	x1, x8
	mov	w2, #0
	bl	_socket
	ldr	x9, [x19]
	str	w0, [x9, x21, lsl #2]
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.4:
	mov	x8, x0
LBB0_5:
	mov	w0, #0
	str	w8, [x20]
LBB0_6:
	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
LBB0_7:
Lloh12:
	adrp	x8, _SOCKET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SOCKET@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_MAX,4,2                     ; @AF_MAX
	.comm	_SOCKET,8,3                     ; @SOCKET
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
