	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bt_gethostbyaddr               ## -- Begin function bt_gethostbyaddr
	.p2align	4, 0x90
_bt_gethostbyaddr:                      ## @bt_gethostbyaddr
	.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
	cmpl	$4, %esi
	jne	LBB0_2
## %bb.1:
	movl	%edx, %r15d
	movq	_AF_BLUETOOTH@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_2
## %bb.3:
	movq	%rdi, %r14
	movq	_host_stayopen@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bt_sethostent
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_bt_gethostent
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%rax, %rbx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	callq	_bt_gethostent
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r15d, (%rbx)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%rbx), %edi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_bcmp
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_9
LBB0_2:
	movq	_NO_RECOVERY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_h_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	xorl	%eax, %eax
	callq	_bt_endhostent
LBB0_10:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_BLUETOOTH,4,2               ## @AF_BLUETOOTH
	.comm	_NO_RECOVERY,4,2                ## @NO_RECOVERY
	.comm	_h_errno,4,2                    ## @h_errno
	.comm	_host_stayopen,4,2              ## @host_stayopen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bt_gethostbyaddr               ; -- Begin function bt_gethostbyaddr
	.p2align	2
_bt_gethostbyaddr:                      ; @bt_gethostbyaddr
	.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
	cmp	w1, #4
	b.ne	LBB0_7
; %bb.1:
	mov	x19, x2
Lloh0:
	adrp	x8, _AF_BLUETOOTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_BLUETOOTH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_7
; %bb.2:
	mov	x20, x0
Lloh3:
	adrp	x8, _host_stayopen@GOTPAGE
Lloh4:
	ldr	x8, [x8, _host_stayopen@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_bt_sethostent
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_bt_gethostent
	mov	x21, x0
	cbz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x21]
	cmp	w8, w19
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21, #4]
	mov	x1, x20
	mov	w2, #4
	bl	_bcmp
	cbnz	x0, LBB0_3
LBB0_6:
	bl	_bt_endhostent
	b	LBB0_8
LBB0_7:
	mov	x21, #0
Lloh6:
	adrp	x8, _NO_RECOVERY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NO_RECOVERY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _h_errno@GOTPAGE
Lloh10:
	ldr	x9, [x9, _h_errno@GOTPAGEOFF]
Lloh11:
	str	w8, [x9]
LBB0_8:
	mov	x0, x21
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_BLUETOOTH,4,2               ; @AF_BLUETOOTH
	.comm	_NO_RECOVERY,4,2                ; @NO_RECOVERY
	.comm	_h_errno,4,2                    ; @h_errno
	.comm	_host_stayopen,4,2              ; @host_stayopen
.subsections_via_symbols
